File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,11 +35,10 @@ public function __construct()
3535 }
3636
3737 /**
38- * Fork a new process and return the current process's ID. In the parent
39- * thread, this will be the child process's ID, and the child thread will
40- * see a `0`.
38+ * Fork a new process using `pcntl_fork()`.
4139 *
42- * @return int
40+ * @return int The child PID in the parent process, `0` in the child
41+ * process, or `-1` on failure.
4342 */
4443 public function fork () : int
4544 {
@@ -52,7 +51,7 @@ public function fork() : int
5251 * result object. If there was a non-normal exit (like a segfault), this
5352 * will throw.
5453 *
55- * @return bool True if the child exited successfully .
54+ * @return WaitResult The child process exit result .
5655 */
5756 public function wait ($ child ) : WaitResult
5857 {
You can’t perform that action at this time.
0 commit comments