diff options
Diffstat (limited to 'ext/pcntl/tests/pcntl_fork_variation.phpt')
-rw-r--r-- | ext/pcntl/tests/pcntl_fork_variation.phpt | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/ext/pcntl/tests/pcntl_fork_variation.phpt b/ext/pcntl/tests/pcntl_fork_variation.phpt index 4eea07181c..4a83966533 100644 --- a/ext/pcntl/tests/pcntl_fork_variation.phpt +++ b/ext/pcntl/tests/pcntl_fork_variation.phpt @@ -16,24 +16,24 @@ echo "*** Testing the process isolations between a process and its forks ***\n"; $pid = pcntl_fork(); if ($pid > 0) { - pcntl_wait($status); + pcntl_wait($status); echo "father is $pid\n"; - if (!isset($pid2)) + if (!isset($pid2)) { echo "father ($pid) doesn't know its grandsons\n"; } -} -else +} +else { echo "son ($pid)\n"; $pid2 = pcntl_fork(); if ($pid2 > 0) - { - pcntl_wait($status2); + { + pcntl_wait($status2); echo "son is father of $pid2\n"; - } - else + } + else { echo "grandson ($pid2)\n"; } |