DNDeployment::setSignal PHP Method

setSignal() public method

Signal the worker to self-abort. If we had a reliable way of figuring out the right PID, we could posix_kill directly, but Resque seems to not provide a way to find out the PID from the job nor worker.
public setSignal ( $signal )
    public function setSignal($signal)
    {
        $sigFile = $this->getSigFile();
        // 2 is SIGINT - we can't use SIGINT constant in the Apache context, only available in workers.
        file_put_contents($sigFile, $signal);
    }