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

Comparing ray/src/rt/rtrace.c (file contents):
Revision 2.96 by greg, Mon Jun 15 15:44:04 2020 UTC vs.
Revision 2.99 by greg, Mon Jul 20 15:54:29 2020 UTC

# Line 92 | Line 92 | quit(                  /* quit program */
92   {
93          if (ray_pnprocs > 0)    /* close children if any */
94                  ray_pclose(0);          
95 +        else if (ray_pnprocs < 0)
96 +                _exit(code);    /* avoid flush() in child */
97   #ifndef  NON_POSIX
98 <        else if (!ray_pnprocs) {
98 >        else {
99                  headclean();    /* delete header file */
100                  pfclean();      /* clean up persist files */
101          }
# Line 164 | Line 166 | rtrace(                                /* trace rays from file */
166          if (nproc > 1) {                /* start multiprocessing */
167                  ray_popen(nproc);
168                  ray_fifo_out = printvals;
167                ray_pnbatch = 1;        /* optimize for throughput */
169          }
170          if (hresolu > 0) {
171                  if (vresolu > 0)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines