« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 5 of about 5 for ゾンビ (0.003 sec.)
pcntl_waitpid — 待つかフォークした子プロセスのステータスを返す | PHP 8.3 11472
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 ... 発生するまで、現在のプロセスの実行を中断します。 process_id でリクエストされた子プロセスが、 コール時に既に終了している場合("ゾンビ"プロセスと呼ばれます)、 この関数は直ちに処理を返します。 子プロセスにより使用される全てのシステム リソースは、解放されます ... $forkedPid } \n" ; print "PARENT is checking for exited children\n" ; checkChild ( $forkedPid , false ); // 子プロセスが「ゾンビプロセス」として残るのを防ぎます print "PARENT is waiting for a child to exit\n" ; checkChild ( $forkedPid , true ); print " ...
https://man.mtool.work/php/8.3/function.pcntl-waitpid.html
pcntl_fork — 現在実行中のプロセスをフォークする | PHP 8.3 10755
pcntl_fork (PHP 4 >= 4.1.0, PHP 5, PHP 7, PHP 8) pcntl_fork — 現在実行中のプロセスをフォークする 説明 function pcntl_fork (): int pcntl_fork() 関数は、親プロセスとその PID および PPID のみが異なる子プロセスを生成します。システム上でのフォー ... ork (); if ( $pid == - 1 ) { die( 'fork できません' ); } else if ( $pid ) { // 親プロセスの場合 pcntl_wait ( $status ); // ゾンビプロセスから守る } else { // 子プロセスの場合 } ?> 参考 pcntl_rfork() - プロセスのリソースを管理する pcntl_waitpid() - 待つか ...
https://man.mtool.work/php/8.3/function.pcntl-fork.html
EvChild::__construct — EvChild ウォッチャーオブジェクトを作る | PHP 8.3 9321
EvChild::__construct (PECL ev >= 0.2.0) EvChild::__construct — EvChild ウォッチャーオブジェクトを作る 説明 public function EvChild::__construct ( int $pid , bool $trace , callable $callback , mixed $data = null , int $priority = 0 ) EvChild ... 止したり再開したりしたときです)。 言い換えると、あるプロセスが SIGCHLD を受信したときに、 Ev はすべての変更された子プロセスやゾンビ子プロセスの exit/wait 状態を取得してコールバックを呼びます。 EvChild が終了してから child ウォッチャーをインストールしてもか ...
https://man.mtool.work/php/8.3/evchild.construct.html
pcntl_wait — 待つかフォークした子プロセスのステータスを返す | PHP 8.3 7887
pcntl_wait (PHP 5, PHP 7, PHP 8) pcntl_wait — 待つかフォークした子プロセスのステータスを返す 説明 function pcntl_wait ( int &$status , int $flags = 0 , array &$resource_usage = [] ): int この関数は、子プロセスが終了する・ カレントのプロセス ... が送信される のいずれかが発生するまでカレントのプロセスの実行を中断します。 子プロセスが、 コール時に 既に終了している場合("ゾンビ"プロセスと呼ばれます)、この関数は 直ちに処理を返します。子プロセスにより使用される全てのシステム リソースは、解放されます。 ...
https://man.mtool.work/php/8.3/function.pcntl-wait.html
例 | PHP 8.3 6453
例 例1 タイマーのサンプル <?php // タイマーを作り、2 秒後に起動します $w1 = new EvTimer ( 2 , 0 , function () { echo "2 seconds elapsed\n" ; }); // タイマーを作って 2 秒後に起動させ、その後は // 手で止めるまで 1 秒おきに繰り返します $w2 = n ... ents ) { $w -> stop (); printf ( "Process %d exited with status %d\n" , $w -> rpid , $w -> rstatus ); }); Ev :: run (); // ゾンビ対策 pcntl_wait ( $status ); } else { // フォークした子プロセス exit( 2 ); } ?> 他のマニュアルの関連ページ Linux JM timer_de ...
https://man.mtool.work/php/8.3/ev.examples.html
PREV 1 NEXT