diff options
Diffstat (limited to 'ext/pcntl/tests/pcntl_wait_rusage1.phpt')
-rw-r--r-- | ext/pcntl/tests/pcntl_wait_rusage1.phpt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pcntl/tests/pcntl_wait_rusage1.phpt b/ext/pcntl/tests/pcntl_wait_rusage1.phpt index 9e95f0020b..6c9cd39540 100644 --- a/ext/pcntl/tests/pcntl_wait_rusage1.phpt +++ b/ext/pcntl/tests/pcntl_wait_rusage1.phpt @@ -6,7 +6,7 @@ pcntl_wait() and rusage --FILE-- <?php $pid = pcntl_fork(); -if ($pid == 1) { +if ($pid == -1) { die("failed"); } else if ($pid) { $status = 0; |