array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'uk', ), 'this' => array ( 0 => 'function.pcntl-wtermsig.php', 1 => 'pcntl_wtermsig', 2 => 'Returns the signal which caused the child to terminate', ), 'up' => array ( 0 => 'ref.pcntl.php', 1 => 'Функції PCNTL', ), 'prev' => array ( 0 => 'function.pcntl-wstopsig.php', 1 => 'pcntl_wstopsig', ), 'next' => array ( 0 => 'book.posix.php', 1 => 'POSIX', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/pcntl/functions/pcntl-wtermsig.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

pcntl_wtermsig

(PHP 4 >= 4.1.0, PHP 5, PHP 7, PHP 8)

pcntl_wtermsigReturns the signal which caused the child to terminate

Опис

pcntl_wtermsig(int $status): int|false

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

Параметри

status

Параметр status записується у разі успішного виклику pcntl_waitpid().

Значення, що повертаються

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

Прогляньте також