in reply to Re: When starting a process, at what point does "open()" return?
in thread When starting a process, at what point does "open()" return?
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:perl -e 'open F, "nosuchprogram |" or die "open: $!\n"; print "don +e\n";'
open: No such file or directory
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: When starting a process, at what point does "open()" return?
by MarkM (Curate) on Aug 18, 2003 at 16:11 UTC | |
by Anonymous Monk on Aug 18, 2003 at 19:50 UTC |
In Section
Seekers of Perl Wisdom