make the parent kill off it's children after it's main loop is finished.

This solves problem reported privately by Thomas Klausner, where the
regress test would take very very long to complete.
This commit is contained in:
jdolecek 2000-07-30 08:48:31 +00:00
parent c7457c964b
commit 0c8766beed

View File

@ -140,6 +140,7 @@ main(int argc, char **argv)
for (i=0; i<nprocs; i++) {
printf("reap %d: ", i);
fflush(stdout);
kill(pid[i], SIGINT);
waitpid(pid[i], &status, 0);
printf(" status %d\n", status);
}