-Adam Stanleywhile ($pid = fork()) { if ($pid) { print "$pid\n"; #returns nonzero in the parent } else { print "$pid\n"; #returns zero in the child } }
In reply to Re: fork question
by astanley
in thread fork question
by gennari
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |