diff --git a/reference/pcntl/functions/pcntl-fork.xml b/reference/pcntl/functions/pcntl-fork.xml index c441c08d1757..3533de40c914 100644 --- a/reference/pcntl/functions/pcntl-fork.xml +++ b/reference/pcntl/functions/pcntl-fork.xml @@ -66,6 +66,7 @@ if ($pid == -1) { &reftitle.seealso; + pcntl_forkx pcntl_rfork pcntl_waitpid pcntl_signal diff --git a/reference/pcntl/functions/pcntl-forkx.xml b/reference/pcntl/functions/pcntl-forkx.xml new file mode 100644 index 000000000000..be0bb36d47d3 --- /dev/null +++ b/reference/pcntl/functions/pcntl-forkx.xml @@ -0,0 +1,135 @@ + + + + + pcntl_forkx + Forks the currently running process, with additional options (Solaris only) + + + + &reftitle.description; + + intpcntl_forkx + intflags + + + The pcntl_forkx function creates a child + process that differs from the parent process only in its PID and + PPID. Please see your system's forkx(2) man page for specific details as to + how forkx works on your system. + + + This function is only available on Solaris. + + + + + &reftitle.parameters; + + + + flags + + + The flags parameter must be one of the following values: + + Possible values for <parameter>flags</parameter> + + + + FORK_WAITPID + + The parent process must call pcntl_waitpid or + pcntl_waitid with the childs processid. Calls + that wait on multiple process IDs do not qualify. Otherwise, the + child will remain as a zombie process until the parent exits. + + + + FORK_NOSIGCHLD + + Do not post a SIGCHLD signal to the parent + process when the child terminates. + + + + +
+
+
+
+
+
+
+ + + &reftitle.returnvalues; + + 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. + + + + + &reftitle.examples; + + + <function>pcntl_forkx</function> example + + +]]> + + + + + + + &reftitle.seealso; + + + pcntl_fork + pcntl_waitid + pcntl_waitpid + + + + +
+ + diff --git a/reference/pcntl/functions/pcntl-wait.xml b/reference/pcntl/functions/pcntl-wait.xml index ba4c81de9f0c..b39ee8b73753 100644 --- a/reference/pcntl/functions/pcntl-wait.xml +++ b/reference/pcntl/functions/pcntl-wait.xml @@ -105,6 +105,7 @@ pcntl_fork pcntl_signal + pcntl_wifcontinued pcntl_wifexited pcntl_wifstopped pcntl_wifsignaled diff --git a/reference/pcntl/functions/pcntl-waitid.xml b/reference/pcntl/functions/pcntl-waitid.xml index d108a9012830..f93cc3c5255f 100644 --- a/reference/pcntl/functions/pcntl-waitid.xml +++ b/reference/pcntl/functions/pcntl-waitid.xml @@ -328,6 +328,7 @@ pcntl_wait pcntl_fork pcntl_signal + pcntl_wifcontinued pcntl_wifexited pcntl_wifstopped pcntl_wifsignaled diff --git a/reference/pcntl/functions/pcntl-waitpid.xml b/reference/pcntl/functions/pcntl-waitpid.xml index d385fe06be38..ef8b28acd1e7 100644 --- a/reference/pcntl/functions/pcntl-waitpid.xml +++ b/reference/pcntl/functions/pcntl-waitpid.xml @@ -149,6 +149,7 @@ pcntl_fork pcntl_signal + pcntl_wifcontinued pcntl_wifexited pcntl_wifstopped pcntl_wifsignaled diff --git a/reference/pcntl/functions/pcntl-wifcontinued.xml b/reference/pcntl/functions/pcntl-wifcontinued.xml new file mode 100644 index 000000000000..b53d37a93c26 --- /dev/null +++ b/reference/pcntl/functions/pcntl-wifcontinued.xml @@ -0,0 +1,76 @@ + + + + + pcntl_wifcontinued + Checks if status code represents a process that was resumed with SIGCONT + + + + &reftitle.description; + + boolpcntl_wifcontinued + intstatus + + + Checks whether the child status code represents a process that was resumed + due to a SIGCONT signal. + + + + + &reftitle.parameters; + + + + status + + &pcntl.parameter.status; + + + + + + + + &reftitle.returnvalues; + + Returns &true; if the child status code represents a process that was resumed + due to a SIGCONT signal, &false; + otherwise. + + + + + &reftitle.seealso; + + + pcntl_wait + pcntl_waitid + pcntl_waitpid + + + + + + + diff --git a/reference/pcntl/versions.xml b/reference/pcntl/versions.xml index b00421970981..67e63c86137d 100644 --- a/reference/pcntl/versions.xml +++ b/reference/pcntl/versions.xml @@ -9,6 +9,7 @@ + @@ -27,6 +28,7 @@ +