Improv++ - for reading the open() docs more carefully than me (sheesh, it's even got its own paragraph there, and silly old me didn't see it!?)
robartes++ - for zombie humor, even though I think Improv's answer is better in this case - your answer is great for the general fork() case, though!
My next question: how do I prevent the close() from blocking until the child exits?
--In reply to Re: open(KID, "-|") and wait()?
by edan
in thread open(KID, "-|") and wait()?
by edan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |