Keep It Simple, Stupid | |
PerlMonks |
Re: Re: When starting a process, at what point does "open()" return?by esh (Pilgrim) |
on Aug 18, 2003 at 06:03 UTC ( [id://284487]=note: print w/replies, xml ) | Need Help?? |
On UNIX systems, open("...|") ... returns after calling fork(). If this is true, how does open return an error if the program is not found, not executable, or has a bad shabang spec? outputs:
I had assumed that this was because it was only returning after the exec() but I'll admit this seems to take a bit more inter-process communication. -- Eric Hammond
In Section
Seekers of Perl Wisdom
|
|