The open call will return when the process exits, if the process hangs and does not exit, then the open will not return unless you arrange for it to be interrupted early (such as by setting an alarm()).
Update: Doh! Of course open doesn't wait for the process to exit, how could you read from the pipe if it did? Apparently I need more sleep...
| We're not surrounded, we're in a target-rich environment! |
|---|
In reply to Re: When starting a process, at what point does "open()" return?
by jasonk
in thread When starting a process, at what point does "open()" return?
by tid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |