diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-01-12 16:56:50 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-01-12 16:56:50 +0800 |
commit | 0ce3b727883532d591f184833bda029750ce3958 (patch) | |
tree | 73d1114c32eac2bde699d8852845391b193abc46 /mbbsd/mbbsd.c | |
parent | 062d8871369884fc7a0e7f983a44d0aa593e5e0a (diff) | |
download | pttbbs-0ce3b727883532d591f184833bda029750ce3958.tar pttbbs-0ce3b727883532d591f184833bda029750ce3958.tar.gz pttbbs-0ce3b727883532d591f184833bda029750ce3958.tar.bz2 pttbbs-0ce3b727883532d591f184833bda029750ce3958.tar.lz pttbbs-0ce3b727883532d591f184833bda029750ce3958.tar.xz pttbbs-0ce3b727883532d591f184833bda029750ce3958.tar.zst pttbbs-0ce3b727883532d591f184833bda029750ce3958.zip |
dirty hack for OVERLOADBLOCKFDS
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1481 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/mbbsd.c')
-rw-r--r-- | mbbsd/mbbsd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index c6575a39..8bdbaa1d 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -1385,7 +1385,8 @@ daemon_login(int argc, char *argv[], char *envp[]) if( (!overloading && nblocked) || (overloading && nblocked == OVERLOADBLOCKFDS) ){ for( i = 0 ; i < OVERLOADBLOCKFDS ; ++i ) - if( blockfd[i] != csock ) + if( blockfd[i] != csock && blockfd[i] != msock ) + /* blockfd[i] should not be msock, but it happened */ close(blockfd[i]); nblocked = 0; } |