PHP pcntl_wifstopped 进程控制函数

  • 定义和用法

    pcntl_wifstopped - 检查子进程当前是否已经停止
  • 版本支持

    PHP4 PHP5 PHP7
    支持 支持 支持
  • 语法

    pcntl_wifstopped( int $status )
    pcntl_wifstopped() 仅查子进程当前是否停止; 此函数只有作用于使用了WUNTRACED作为 option的pcntl_waitpid() 函数调用产生的status时才有效。
  • 参数

    参数 必需的 描述
    status 参数 status 是提供给成功调用 pcntl_waitpid() 时的状态参数。
  • 返回值

    如果子进程当前是停止的返回 TRUE ,其他情况返回 FALSE 。
  • 相关页面

    pcntl_waitpid() - 等待或返回fork的子进程状态