Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Re: Understanding forkby neilwatson (Priest) |
on Nov 08, 2002 at 17:38 UTC ( [id://211484]=note: print w/replies, xml ) | Need Help?? |
In the parent process, fork() returns the process ID of the new child. So in that process, you redirect the user, and exit. (At least, I THINK you should exit, but you're falling out of that else clause in your sample, and doing the while twice...).
How do you prevent that?
Neil Watson
In Section
Seekers of Perl Wisdom
|
|