Hacker News new | ask | show | jobs
by ambrop7 3346 days ago
Yes, with SIGCHLD you can call waitpid(-1, &status, WNOHANG) in a loop until it fails, and you will collect all terminated children.