= 4.1.0, PHP 5, PHP 7, PHP 8)pcntl_wtermsig — 返回導致子進程中斷的信號說明pcntl_wtermsig(int $status): int返回導致子進程中斷的信號編號。這個函數(shù)僅在pcntl_wifsignal">

pcntl_wtermsig

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

pcntl_wtermsig返回導致子進程中斷的信號

說明

pcntl_wtermsig(int $status): int

返回導致子進程中斷的信號編號。這個函數(shù)僅在pcntl_wifsignaled() 返回 true 時有效。

參數(shù)

status

參數(shù) status 是提供給成功調(diào)用 pcntl_waitpid() 時的狀態(tài)參數(shù)。

返回值

返回整型的信號編號。

參見