--- ray/src/px/pcomb.c 1992/08/13 10:49:08 2.4 +++ ray/src/px/pcomb.c 1992/08/28 21:41:49 2.5 @@ -463,18 +463,15 @@ int code; #else -#include - quit(code) /* exit gracefully */ int code; { int status; - - if (code) { /* abnormal exit -- kill children */ - signal(SIGPIPE, SIG_IGN); - kill(0, SIGPIPE); - } - /* reap any children */ + register int i; + /* close input files */ + for (i = 0; i < nfiles; i++) + fclose(input[i].fp); + /* reap children */ while (wait(&status) != -1) if (code == 0) code = status>>8 & 0xff;