ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/px/pcomb.c
(Generate patch)

Comparing ray/src/px/pcomb.c (file contents):
Revision 2.4 by greg, Thu Aug 13 10:49:08 1992 UTC vs.
Revision 2.5 by greg, Fri Aug 28 21:41:49 1992 UTC

# Line 463 | Line 463 | int  code;
463  
464   #else
465  
466 #include  <signal.h>
467
466   quit(code)              /* exit gracefully */
467   int  code;
468   {
469          int  status;
470 <
471 <        if (code) {             /* abnormal exit -- kill children */
472 <                signal(SIGPIPE, SIG_IGN);
473 <                kill(0, SIGPIPE);
474 <        }
477 <                                /* reap any children */
470 >        register int  i;
471 >                                /* close input files */
472 >        for (i = 0; i < nfiles; i++)
473 >                fclose(input[i].fp);
474 >                                /* reap children */
475          while (wait(&status) != -1)
476                  if (code == 0)
477                          code = status>>8 & 0xff;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines