From af2ee986876c911b8a24ad9b485ab9dafa8492fe Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 10 May 2005 01:10:04 +0000 Subject: 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 --- src/inspircd.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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) { -- cgit v1.2.3