diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-16 21:03:38 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-16 21:03:38 +0800 |
commit | 8c56b28ee4d609bab7d7a01834f033896d88dc59 (patch) | |
tree | ab400f37bfb98fa3a5c64f5daf6126d40ae4f10e | |
parent | a22f3dec4e71e3169bfb7fd8b5f597be04068c99 (diff) | |
download | pttbbs-8c56b28ee4d609bab7d7a01834f033896d88dc59.tar pttbbs-8c56b28ee4d609bab7d7a01834f033896d88dc59.tar.gz pttbbs-8c56b28ee4d609bab7d7a01834f033896d88dc59.tar.bz2 pttbbs-8c56b28ee4d609bab7d7a01834f033896d88dc59.tar.lz pttbbs-8c56b28ee4d609bab7d7a01834f033896d88dc59.tar.xz pttbbs-8c56b28ee4d609bab7d7a01834f033896d88dc59.tar.zst pttbbs-8c56b28ee4d609bab7d7a01834f033896d88dc59.zip |
* add missing check-in for async mode logind
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4639 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/mbbsd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index 9e184522..3206ed86 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -1929,7 +1929,7 @@ shell_login(char *argv0, struct ProgramOption *option) static int tunnel_login(char *argv0, struct ProgramOption *option) { - int tunnel = 0, csock = 0, success = 1; + int tunnel = 0, csock = 0; unsigned int pid = (unsigned int)getpid(); struct login_data dat = {0}; char buf[PATHLEN]; @@ -1983,7 +1983,7 @@ tunnel_login(char *argv0, struct ProgramOption *option) return 0; } if (toread (tunnel, &dat, sizeof(dat)) < sizeof(dat) || - towrite(tunnel, &success, sizeof(success)) < sizeof(success)) + towrite(tunnel, &dat.ack, sizeof(dat.ack)) < sizeof(dat.ack)) return 0; assert(dat.cb == sizeof(dat)); |