Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The technique described in the SO answer doesn't really apply here, since the write end of the pipe would be closed on exec in that case. Whereas in this case they're waiting for it to be closed after the child dies.


Sure, it may not apply in this specific case. But you said “This is the first I've heard of using an open pipe to poll for subprocess termination” and I was just pointing out that this is a well known technique.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: