返回導致子程序停止的訊號

pcntl_wstopsig

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

pcntl_wstopsig返回導致子程序停止的訊號

說明

pcntl_wstopsig(int $status): int

返回導致子程序停止的訊號編號。這個函式僅在pcntl_wifstopped()返回 true 時有效。

參數

status

參數 status 是提供給成功呼叫 pcntl_waitpid() 時的狀態參數。

返回值

返回訊號編號。

參見

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *