rem: while (waitpid(-1, NULL, WNOHANG) > 0) ;
add: int cnt, status; pid_t pid;  while ((pid = waitpid(-1, &status, WNOHANG)) > 0) {  for (cnt = 0; cnt < MAXCHILDPROCS; cnt++) { if (pid_stat_table[cnt].pid == 0) { pid_stat_table[cnt].pid = pid; pid_stat_table[cnt].status = status; break; } } }
context: static RETSIGTYPE sigchld_handler(int UNUSED(val)) {#ifdef WNOHANG	while (waitpid(-1, NULL, WNOHANG) > 0) ;#endif}