in reply to fork question
-Adam Stanleywhile ($pid = fork()) { if ($pid) { print "$pid\n"; #returns nonzero in the parent } else { print "$pid\n"; #returns zero in the child } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: fork question
by suaveant (Parson) on Apr 11, 2001 at 23:57 UTC |