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

Comparing ray/src/px/pcompos.c (file contents):
Revision 2.8 by greg, Mon Jul 13 15:04:15 1992 UTC vs.
Revision 2.9 by greg, Mon Aug 10 11:23:13 1992 UTC

# Line 356 | Line 356 | err:
356   quit(code)              /* exit gracefully */
357   int  code;
358   {
359 +        int  status;
360 +
361 +        if (code == 0)                  /* reap any children */
362 +                while (wait(&status) != -1)
363 +                        if (code == 0)
364 +                                code = status>>8 & 0xff;
365          exit(code);
366   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines