pcntl_wexitstatus

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

pcntl_wexitstatus終了した子プロセスのリターンコードを返す

説明

pcntl_wexitstatus(int $status): int

終了した子プロセスのリターンコードを返します。この関数は、 pcntl_wifexited()true を返す場合のみ 有用です。

パラメータ

status

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

返り値

リターンコードを表す整数値を返します。

参考

  • pcntl_waitpid() - 待つかフォークした子プロセスのステータスを返す
  • pcntl_wifexited() - ステータスコードが正常終了を表しているかどうかを調べる

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top