DJJob.php
public function handleSignal($signo) {
        $signals = array(
            SIGTERM => "SIGTERM",
            SIGINT  => "SIGINT"
        );
        $signal = $signals[$signo];

        $this->log("[WORKER] Received received {$signal}... Shutting down", self::INFO);
        $this->releaseLocks();
        die(0);
    }
public function handleSignal($signo) {
        $signals = array(
            SIGTERM => "SIGTERM",
            SIGINT  => "SIGINT"
        );
        $signal = $signals[$signo];

        $this->log("[WORKER] Received received {$signal}... Shutting down", self::INFO);
        $this->releaseLocks();
        die(0);
    }
public function handleSignal ( $ signo ) { $ signals = array ( SIGTERM => "SIGTERM" , SIGINT => "SIGINT" ) ; $ signal = $ signals [ $ signo ] ; $ this -> log ( "[WORKER] Received received {$signal}... Shutting down" , self :: INFO ) ; $ this -> releaseLocks ( ) ; die ( 0 ) ; }
Handles a signal from the operating system.

@param string $signo The signal received from the OS.
Handles a signal from the operating system .