protected function child_status_monitor($pid, $jobs, $status) {
        switch ($status) {
            case "killed":
                $message = "Child $pid has been running too long. Forcibly killing process. (".implode(",", $jobs).")";
                break;
            case "exited":
                $message = "Child $pid exited cleanly. (".implode(",", $jobs).")";
                break;
            default:
                $message = "Child $pid died unexpectedly with exit code $status. (".implode(",", $jobs).")";
                break;
        }
        $this->log($message, GearmanManager::LOG_LEVEL_PROC_INFO);
    }
protected function child_status_monitor($pid, $jobs, $status) {
        switch ($status) {
            case "killed":
                $message = "Child $pid has been running too long. Forcibly killing process. (".implode(",", $jobs).")";
                break;
            case "exited":
                $message = "Child $pid exited cleanly. (".implode(",", $jobs).")";
                break;
            default:
                $message = "Child $pid died unexpectedly with exit code $status. (".implode(",", $jobs).")";
                break;
        }
        $this->log($message, GearmanManager::LOG_LEVEL_PROC_INFO);
    }
protected function child_status_monitor ( $ pid , $ jobs , $ status ) { switch ( $ status ) { case "killed" : $ message = "Child $pid has been running too long. Forcibly killing process. (" . implode ( "," , $ jobs ) . ")" ; break ; case "exited" : $ message = "Child $pid exited cleanly. (" . implode ( "," , $ jobs ) . ")" ; break ; default : $ message = "Child $pid died unexpectedly with exit code $status. (" . implode ( "," , $ jobs ) . ")" ; break ; } $ this -> log ( $ message , GearmanManager :: LOG_LEVEL_PROC_INFO ) ; }
Function for logging the status of children. This simply logs the status
of the process. Wrapper classes can make use of this to do logging as
appropriate for individual environments.

@param  int    $pid    PID of the child process
@param  array  $jobs   Array of jobs the child is/was running
@param  string $status Status of the child process.
One of killed, exited or non-zero integer

@return void
Function for logging the status of children . This simply logs the status of the process . Wrapper classes can make use of this to do logging as appropriate for individual environments .