]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
[Bug 394] Infinite loop in hfaxd leads to client/server lockup & 99% CPU consumption
authorDarren Nickerson <darren.nickerson@ifax.com>
Tue, 25 Mar 2003 04:32:29 +0000 (04:32 +0000)
committerDarren Nickerson <darren.nickerson@ifax.com>
Tue, 25 Mar 2003 04:32:29 +0000 (04:32 +0000)
Thanks to Aidan VanDyk and iFax Solutions for a fix to this uncommon, but
very severe lockup in client/server communication.

hfaxd/SuperServer.c++

index 40e8fa5e2c2aff02fdefc78bc167105ab98c6403..1faad563e4b9a6c8a015a6cbbf7ea7b7915c1bb8 100644 (file)
@@ -103,5 +103,8 @@ SuperServer::inputReady(int fd)
 void
 SuperServer::childStatus(pid_t, int)
 {
-    Dispatcher::instance().stopChild(this);
+    /*
+     * Nothing to do here - childStatus means it's already been reaped, and
+     * thus off the queue from the Dispatcher
+     */
 }