Php/docs/function.pcntl-wexitstatus

提供:Dev Guides
< Php
2020年12月14日 (月) 11:16時点におけるNotes (トーク | 投稿記録)による版 (autoload)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
移動先:案内検索

pcntl_wexitstatus

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

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


説明

pcntl_wexitstatus ( int $status ) : int

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


パラメータ

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


返り値

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


参考

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