2 * This program waits for child process and "reaps" them, i.e. read
3 * off their status so that they can terminate. The program exits when
4 * it runs out of children.
15 sigprocmask(SIG_BLOCK,&set,NULL);
18 memset( &status, 0, sizeof( status ) );
19 } while ( waitid( P_ALL, 0, &status, WEXITED ) == 0 );