« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 1 of about 1 for deadPid (0.001 sec.)
pcntl_waitpid — 待つかフォークした子プロセスのステータスを返す | PHP 8.3 9414
pcntl_waitpid (PHP 4 >= 4.1.0, PHP 5, PHP 7, PHP 8) pcntl_waitpid — 待つかフォークした子プロセスのステータスを返す 説明 function pcntl_waitpid ( int $process_id , int &$status , int $flags = 0 , array &$resource_usage = [] ): int 引数 proce ... 例 例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