workaround for stalling worker processes when running the daemon
This commit is contained in:
parent
3792e2819d
commit
3cb7a7606e
4 changed files with 10 additions and 8 deletions
|
@ -106,8 +106,10 @@ if (!$foreground) {
|
|||
}
|
||||
|
||||
fclose(STDIN); // Close all of the standard
|
||||
fclose(STDOUT); // file descriptors as we
|
||||
fclose(STDERR); // are running as a daemon.
|
||||
|
||||
// Enabling this seem to block a running php process with 100% CPU usage when there is an outpout
|
||||
// fclose(STDOUT); // file descriptors as we
|
||||
// fclose(STDERR); // are running as a daemon.
|
||||
|
||||
dba::disconnect();
|
||||
|
||||
|
|
|
@ -63,4 +63,3 @@ Worker::unclaimProcess();
|
|||
Worker::endProcess();
|
||||
|
||||
killme();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue