diff options
-rw-r--r-- | src/inspircd.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index e8e93bcc5..c022b0bb9 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -118,7 +118,7 @@ bool InspIRCd::DaemonSeed() { int childpid; if ((childpid = fork ()) < 0) - return (ERROR); + return false; else if (childpid > 0) { /* We wait here for the child process to kill us, @@ -129,9 +129,7 @@ bool InspIRCd::DaemonSeed() * they threw an error and we should give up. */ while (kill(childpid, 0) != -1) - { sleep(1); - } exit(ERROR); } setsid (); |