title: Non blocking wait for child processes to exit
body: <p>I have a program in C that launches 100 child processes with <code>fork()</code> and then waits for them to fininsh using a wait in a loop. I would like to wait a maximum amount of time for them all to finish, so the parent process doesn't stay blocked if one of them is, and if that time is over, kill the unfinished ones.</p>
  
  <p>Which would be the best way to do that?</p>