pcntl_wifstopped
(PHP 4 >= 4.1.0, PHP 5, PHP 7, PHP 8)
pcntl_wifstopped — 檢查子程序目前是否已經停止
說明
pcntl_wifstopped(int
$status): bool 僅查子程序目前是否停止; 此函式只有作用於使用了WUNTRACED作為
option的pcntl_waitpid()函式呼叫產生的status時才有效。
參數
-
status 參數
status是提供給成功呼叫 pcntl_waitpid() 時的狀態參數。
返回值
如果子程序目前是停止的返回 true ,其他情況返回 false 。
參見
- pcntl_waitpid() - 等待或返回fork的子程序狀態