diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-05-10 01:10:04 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-05-10 01:10:04 +0000 |
commit | af2ee986876c911b8a24ad9b485ab9dafa8492fe (patch) | |
tree | 9c0a05e440d2435de25a284c9b784afac4ffcf5f | |
parent | 8dedf0ee7c2a8b80d422e5e345a8f70828b3a37c (diff) |
Fixed crash when socket reads 0 whilst in kqueue mode
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1353 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/inspircd.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 6b6b33147..0bb0cc33e 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -4561,14 +4561,18 @@ int InspIRCd(char** argv, int argc) else if (result == 0) { +#ifndef USE_KQUEUE if (count2->second) { +#endif log(DEBUG,"InspIRCd: Exited: %s",cu->nick); kill_link(cu,"Client exited"); // must bail here? kill_link removes the hash, corrupting the iterator log(DEBUG,"Bailing from client exit"); goto label; +#ifndef USE_KQUEUE } +#endif } else if (result > 0) { |