in reply to Re: Managing Process Handles
in thread Managing Process Handles
And based on my experiments (simple-minded, but functional, I think), there's no way around losing at least one print statement after the pipe process exits (because the previous statement caused that process to terminate on its own initiative).
Another thought -- not pretty, but... -- opening a pipe returns a pid, right? and maybe there's something that one could do within a loop, before printing to the pipe handle, to see if that pid is still running.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Managing Process Handles
by rir (Vicar) on Oct 19, 2002 at 17:36 UTC |