Search Results
Note: Specifying -1 as the process_id is equivalent to the functionality pcntl_wait () provides (minus flags). status pcntl_waitpid () will store status information in the status parameter which can be evaluated using the following functions: pcntl_wifexited (), pcntl_wifstopped (), pcntl_wifsignaled (), pcntl_wexitstatus (), pcntl_wtermsig () and pcntl_wstopsig (). flags The value of flags is ...
pcntl_waitpid will store status information in the status parameter which can be evaluated using the following functions: pcntl_wifexited, pcntl_wifstopped, pcntl_wifsignaled, pcntl_wexitstatus, pcntl_wtermsig and pcntl_wstopsig. flags The value of flags is the value of zero or more of the following two global constants OR'ed together:
Description The pcntl_waitpid of PCNTL for PHP waits on or returns the status of a forked child.
pcntl_waitpid (PHP 4 >= 4.1.0, PHP 5, PHP 7, PHP 8) pcntl_waitpid — Waits on or returns the status of a forked child
The pcntl_waitpid () function suspends execution of the current process until a child as specified by the pid argument has exited, or until a signal is delivered whose action is to terminate the current process or to call a signal handling function.
Note: Si pid vaut -1, cela équivaut à utiliser la fonction pcntl_wait () (minimum options). status pcntl_waitpid () enregistrera des informations sur le statut courant du processus dans le paramètre status, auquel on peut accéder grâce aux fonctions suivantes : pcntl_wifexited (), pcntl_wifstopped (), pcntl_wifsignaled (), pcntl_wexitstatus (), pcntl_wtermsig () et pcntl_wstopsig ...
The pcntl_waitpid () function suspends execution of the current process until a child as specified by the pid argument has exited, or until a signal is delivered whose action is to terminate the current process or to call a signal handling function.
