Skip to content

Commit 097a98d

Browse files
committed
ALLI-21969: fix pcntl docblocks
1 parent 409b028 commit 097a98d

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

src/Handler/Pcntl/Pcntl.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff 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
{

0 commit comments

Comments
 (0)