in reply to When starting a process, at what point does "open()" return?
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! |
---|
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: When starting a process, at what point does "open()" return?
by esh (Pilgrim) on Aug 18, 2003 at 02:25 UTC | |
Re: Re: When starting a process, at what point does "open()" return?
by Anonymous Monk on Aug 18, 2003 at 02:22 UTC |