Syntactic Confectionery Delight | |
PerlMonks |
Re: Re: When starting a process, at what point does "open()" return?by esh (Pilgrim) |
on Aug 18, 2003 at 02:25 UTC ( [id://284475]=note: print w/replies, xml ) | Need Help?? |
The open call will return when the process exitsThis is not true on operating systems I'm familiar with and I doubt it's true on Windows, either. The open call returns when the process starts not when it exits. You can then have the child process talking with the parent process while both are running at the same time. Here's proof:
I know that "sleep 60" takes about 60 seconds to run, but my top perl program prints "done" right away and exits. It does not wait for the "sleep 60" to exit. The related system call does wait for the child return when the child process exits. -- Eric Hammond
In Section
Seekers of Perl Wisdom
|
|