workaround for stalling worker processes when running the daemon

This commit is contained in:
Michael 2018-07-11 06:05:22 +00:00
commit 3cb7a7606e
4 changed files with 10 additions and 8 deletions

View file

@ -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();

View file

@ -63,4 +63,3 @@ Worker::unclaimProcess();
Worker::endProcess();
killme();