# HG changeset patch # User Dan # Date 1223517381 14400 # Node ID 53b0f0d7ff6f4c090db8343e36bd01b10114cef0 # Parent b8a3c9c54fbe8ae7ee104b3bf38994b97189278b Fixed wrong PID variable in httpd fork diff -r b8a3c9c54fbe -r 53b0f0d7ff6f webserver.php --- a/webserver.php Wed Oct 08 21:22:48 2008 -0400 +++ b/webserver.php Wed Oct 08 21:56:21 2008 -0400 @@ -508,7 +508,8 @@ // fork off if possible if ( function_exists('pcntl_fork') && $this->allow_fork && !$this->in_keepalive ) { - if ( $this->threader->fork() == Threader::FORK_CHILD ) + $fork_result = $this->threader->fork(); + if ( $fork_result == Threader::FORK_CHILD ) { // this is the child define('HTTPD_WS_CHILD', 1); @@ -517,7 +518,7 @@ { // we are the parent, continue listening $remote->soft_shutdown(); - $this->child_list[] = $pid; + $this->child_list[] = $fork_result; continue; } }