diff options
| author | 2005-05-10 01:10:04 +0000 | |
|---|---|---|
| committer | 2005-05-10 01:10:04 +0000 | |
| commit | af2ee986876c911b8a24ad9b485ab9dafa8492fe (patch) | |
| tree | 9c0a05e440d2435de25a284c9b784afac4ffcf5f /src/inspircd.cpp | |
| parent | Added socket engine to version response (diff) | |
| download | inspircd++-af2ee986876c911b8a24ad9b485ab9dafa8492fe.tar.gz inspircd++-af2ee986876c911b8a24ad9b485ab9dafa8492fe.tar.bz2 inspircd++-af2ee986876c911b8a24ad9b485ab9dafa8492fe.zip | |
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
Diffstat (limited to 'src/inspircd.cpp')
| -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) { |
