summaryrefslogtreecommitdiff
path: root/ext/pcntl/tests/pcntl_fork_variation.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/pcntl/tests/pcntl_fork_variation.phpt')
-rw-r--r--ext/pcntl/tests/pcntl_fork_variation.phpt12
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/pcntl/tests/pcntl_fork_variation.phpt b/ext/pcntl/tests/pcntl_fork_variation.phpt
index 4eea07181c..c0708a93df 100644
--- a/ext/pcntl/tests/pcntl_fork_variation.phpt
+++ b/ext/pcntl/tests/pcntl_fork_variation.phpt
@@ -16,23 +16,23 @@ 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
{
echo "son ($pid)\n";
$pid2 = pcntl_fork();
if ($pid2 > 0)
- {
- pcntl_wait($status2);
+ {
+ pcntl_wait($status2);
echo "son is father of $pid2\n";
- }
+ }
else
{
echo "grandson ($pid2)\n";