public function workerSignal(int $signal) {
        $this->log(LogLevel::DEBUG, "[{pid}] Caught signal '{$signal}' (SIGHUP) at worker - handing off to payload handler");

        switch ($signal) {

            // Daemon was asked to hang up
            case SIGHUP:
                $this->payloadExec('signal', [$signal]);
                break;

            // Custom signal - Nothing
            case SIGUSR1:
                $this->payloadExec('signal', [$signal]);
                break;

            // Custom signal - Nothing
            case SIGUSR2:
                $this->payloadExec('signal', [$signal]);
                break;
        }
    }
public function workerSignal(int $signal) {
        $this->log(LogLevel::DEBUG, "[{pid}] Caught signal '{$signal}' (SIGHUP) at worker - handing off to payload handler");

        switch ($signal) {

            // Daemon was asked to hang up
            case SIGHUP:
                $this->payloadExec('signal', [$signal]);
                break;

            // Custom signal - Nothing
            case SIGUSR1:
                $this->payloadExec('signal', [$signal]);
                break;

            // Custom signal - Nothing
            case SIGUSR2:
                $this->payloadExec('signal', [$signal]);
                break;
        }
    }
public function workerSignal ( int $ signal ) { $ this -> log ( LogLevel :: DEBUG , "[{pid}] Caught signal '{$signal}' (SIGHUP) at worker - handing off to payload handler" ) ; switch ( $ signal ) { // Daemon was asked to hang up case SIGHUP : $ this -> payloadExec ( 'signal' , [ $ signal ] ) ; break ; // Custom signal - Nothing case SIGUSR1 : $ this -> payloadExec ( 'signal' , [ $ signal ] ) ; break ; // Custom signal - Nothing case SIGUSR2 : $ this -> payloadExec ( 'signal' , [ $ signal ] ) ; break ; } }
Worker signal handler

@param int $signal
@throws Exception
Worker signal handler