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.2 by greg, Fri Mar 27 10:04:12 1992 UTC vs.
Revision 2.3 by greg, Mon Aug 10 12:10:26 1992 UTC

# Line 452 | Line 452 | char   *msg;
452   quit(code)
453   int     code;
454   {
455 +        int  status;
456 +
457 +        if (code == 0)                  /* reap any children */
458 +                while (wait(&status) != -1)
459 +                        if (code == 0)
460 +                                code = status>>8 & 0xff;
461          exit(code);
462   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines