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.11 by greg, Wed Aug 12 12:39:52 1992 UTC vs.
Revision 2.13 by greg, Fri Aug 28 16:29:20 1992 UTC

# Line 365 | Line 365 | err:
365   }
366  
367  
368 < quit(code)              /* exit gracefully */
368 > #ifdef  NIX
369 >
370 > quit(code)
371   int  code;
372   {
373 <        int  status;
373 >        exit(code);
374 > }
375  
376 <        if (code == 0)                  /* reap any children */
377 <                while (wait(&status) != -1)
378 <                        if (code == 0)
379 <                                code = status>>8 & 0xff;
376 > #else
377 >
378 > quit(code)              /* exit gracefully */
379 > int  code;
380 > {
381 >        register int  i;
382 >                                /* close input files */
383 >        for (i = 0; i < nfile; i++)
384 >                fclose(input[i].fp);
385 >                                /* reap any children */
386 >        while (wait(0) != -1)
387 >                ;
388          exit(code);
389   }
390 +
391 + #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines