« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 2 of about 2 for deadPid (0.001 sec.)
待つかフォークした子プロセスのステータスを返す 9357
« pcntl_waitid pcntl_wexitstatus » PHP Manual PCNTL 関数 待つかフォークした子プロセスのステータスを返す 検索 pcntl_waitpid (PHP 4 >= 4.1.0, PHP 5, PHP 7, PHP 8) pcntl_waitpid — 待つかフォークした子プロセスのステータスを返す 説明 function pc ... 例 例1 pcntl_waitpid() の例 <?php function checkChild ( int $pid , bool $wait ): void { $flags = ( $wait ? 0 : WNOHANG ); $deadPid = pcntl_waitpid ( $pid , $status , $flags , $rusage ); if ( $deadPid === - 1 ) { $errNo = pcntl_get_last_error (); $errMsg ... = pcntl_strerror ( $errNo ); print "PARENT pcntl_waitpid FAILED ( { $errNo } ): { $errMsg } \n" ; } elseif ( $deadPid === 0 ) { print "PARENT pcntl_waitpid: No exited children.\n" ; } elseif ( pcntl_wifexited ( $status )) { print "PARENT pc ... ntl_waitpid: Child PID { $deadPid } exited with status: " . pcntl_wexitstatus ( $status ) . "\n" ; var_dump ( $rusage ); } else { print "PARENT pcntl_waitpi ...
https://man.mtool.work/php/8.3/function.pcntl-waitpid.html
待つかフォークした子プロセスのステータスを返す 9357
« pcntl_waitid pcntl_wexitstatus » PHP Manual PCNTL 関数 待つかフォークした子プロセスのステータスを返す 検索 pcntl_waitpid (PHP 4 >= 4.1.0, PHP 5, PHP 7, PHP 8) pcntl_waitpid — 待つかフォークした子プロセスのステータスを返す 説明 function pc ... 例 例1 pcntl_waitpid() の例 <?php function checkChild ( int $pid , bool $wait ): void { $flags = ( $wait ? 0 : WNOHANG ); $deadPid = pcntl_waitpid ( $pid , $status , $flags , $rusage ); if ( $deadPid === - 1 ) { $errNo = pcntl_get_last_error (); $errMsg ... = pcntl_strerror ( $errNo ); print "PARENT pcntl_waitpid FAILED ( { $errNo } ): { $errMsg } \n" ; } elseif ( $deadPid === 0 ) { print "PARENT pcntl_waitpid: No exited children.\n" ; } elseif ( pcntl_wifexited ( $status )) { print "PARENT pc ... ntl_waitpid: Child PID { $deadPid } exited with status: " . pcntl_wexitstatus ( $status ) . "\n" ; var_dump ( $rusage ); } else { print "PARENT pcntl_waitpi ...
https://man.mtool.work/php/8.3/function.pcntl-waitpid.html
PREV 1 NEXT