Jenner\SimpleFork\Process::signal PHP Method

signal() protected method

register signal SIGTERM handler, when the parent process call shutdown and use the default signal, this handler will be triggered
protected signal ( )
    protected function signal()
    {
        pcntl_signal(SIGTERM, function () {
            exit(0);
        });
    }