update page now
PHP 8.4.22 Released!

pcntl_forkx

(No version information available, might only be in Git)

pcntl_forkxCreate a child process using forkx(2)

説明

function pcntl_forkx(int $flags): int

The pcntl_forkx() function creates a child process using the forkx(2) system call, which is available on illumos and Solaris systems.

パラメータ

flags
The flags parameter controls the behavior of the fork. Pass 0 for default behavior or FORK_NOSIGCHLD to prevent the SIGCHLD signal from being sent to the parent when the child terminates.

戻り値

On success, the PID of the child process is returned in the parent's thread of execution, and a 0 is returned in the child's thread of execution. On failure, a -1 will be returned in the parent's context, no child process will be created, and a PHP error is raised.

参考

  • pcntl_fork() - 現在実行中のプロセスをフォークする
  • pcntl_rfork() - プロセスのリソースを管理する
  • pcntl_waitpid() - 待つかフォークした子プロセスのステータスを返す
add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top