PHP.nl

pcntl_wtermsig

pcntl_wtermsig

Returns the signal which caused the child to terminate

 **pcntl_wtermsig** int $status

Returns the number of the signal that caused the child process to terminate. This function is only useful if returned true. pcntl_wifsignaled

status

Returns the signal number. If the functionality is not supported by the OS, false is returned.

pcntl_waitpid``pcntl_signal``pcntl_wifsignaled