Altax\Module\Task\Process\Executor::signalHandler PHP Method

signalHandler() public method

public signalHandler ( $signo )
    public function signalHandler($signo)
    {
        switch ($signo) {
            case SIGTERM:
                $this->runtimeTask->getOutput()->writeln("<fg=red>Got SIGTERM.</fg=red>");
                $this->killAllChildren();
                exit;
            case SIGINT:
                $this->runtimeTask->getOutput()->writeln("<fg=red>Got SIGINT.</fg=red>");
                $this->killAllChildren();
                exit;
        }
    }