« pcntl_wifstopped
pcntl_wtermsig »

pcntl_wstopsig

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

pcntl_wstopsig — 子プロセスを停止させたシグナルを返す

説明

function pcntl_wstopsig(int $status): int|false

子プロセスを停止させたシグナル番号を返します。この関数は、 pcntl_wifstopped() が true を返す場合のみ有用です。

パラメータ

status

パラメータ status は、 pcntl_waitpid() が正常にコールされた際に得られます。

戻り値

シグナル番号を返します。 この機能を OS がサポートしていない場合、false を返します。

参考

  • pcntl_waitpid() - 待つかフォークした子プロセスのステータスを返す
  • pcntl_wifstopped() - 子プロセスが現在停止しているかどうかを調べる

関連キーワード:
pcntl   停止   シグナル   wifstopped   wstopsig   status   番号   waitpid   wtermsig   有用   正常   サポート   参考   フォーク   ステータス
関連する関数・ページ:
function.pcntl-wifstopped   function.pcntl-wtermsig   function.pcntl-wifsignaled   ref.pcntl   function.pcntl-wait   function.pcntl-wifcontinued