Hacker News new | ask | show | jobs
by lkurusa 3286 days ago
Wrong, waitpid(-1, ...) waits on all child processes of the current process, and would return -1 with errno set to ECHLD if there is no children.

The point about missing error checking still stands though!

1 comments

Ah, yes, any child...thanks for the catch.