Skip to content

Commit

Permalink
$this is not available in static context
Browse files Browse the repository at this point in the history
also this method does return boolean, not void
  • Loading branch information
cebe committed Oct 3, 2012
1 parent 1d32457 commit 32310e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions System/Daemon.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -1336,7 +1336,7 @@ static public function stopRunning()
/** /**
* Put the running script in background * Put the running script in background
* *
* @return void * @return boolean
*/ */
static protected function _summon() static protected function _summon()
{ {
Expand Down Expand Up @@ -1398,7 +1398,7 @@ static protected function _summon()
// Setup signal handlers // Setup signal handlers
// Handlers for individual signals can be overrulled with // Handlers for individual signals can be overrulled with
// setSigHandler() // setSigHandler()
$this->setSigHandler(); self::setSigHandler();
foreach (self::$_sigHandlers as $signal => $handler) { foreach (self::$_sigHandlers as $signal => $handler) {
if (!is_callable($handler) && $handler != SIG_IGN && $handler != SIG_DFL) { if (!is_callable($handler) && $handler != SIG_IGN && $handler != SIG_DFL) {
return self::emerg( return self::emerg(
Expand Down

0 comments on commit 32310e5

Please sign in to comment.