X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fspawningdaemon.php;h=732237403dfa49cd75450f81120e7378f9ad71cb;hb=15ab9ff9e3303255ff14166ee86ffdf3bc4f52ce;hp=ea09b6fb2f3016f67553cc683b254b537c9da1f6;hpb=cb183359e23ae7a5cfb483fa06c6c4b7a8b05fff;p=quix0rs-gnu-social.git diff --git a/lib/spawningdaemon.php b/lib/spawningdaemon.php index ea09b6fb2f..732237403d 100644 --- a/lib/spawningdaemon.php +++ b/lib/spawningdaemon.php @@ -77,7 +77,7 @@ abstract class SpawningDaemon extends Daemon for ($i = 1; $i <= $this->threads; $i++) { $pid = pcntl_fork(); if ($pid < 0) { - $this->log(LOG_ERROR, "Couldn't fork for thread $i; aborting\n"); + $this->log(LOG_ERR, "Couldn't fork for thread $i; aborting\n"); exit(1); } else if ($pid == 0) { $this->initAndRunChild($i); @@ -113,7 +113,7 @@ abstract class SpawningDaemon extends Daemon $pid = pcntl_fork(); if ($pid < 0) { - $this->log(LOG_ERROR, "Couldn't fork to respawn thread $i; aborting thread.\n"); + $this->log(LOG_ERR, "Couldn't fork to respawn thread $i; aborting thread.\n"); } else if ($pid == 0) { $this->initAndRunChild($i); } else { @@ -141,7 +141,7 @@ abstract class SpawningDaemon extends Daemon $this->parentWriter = $sockets[0]; $this->parentReader = $sockets[1]; } else { - $this->log(LOG_ERROR, "Couldn't create inter-process sockets"); + $this->log(LOG_ERR, "Couldn't create inter-process sockets"); exit(1); } }