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

Comparing ray/src/rt/raypcalls.c (file contents):
Revision 2.26 by greg, Wed Dec 16 01:06:50 2009 UTC vs.
Revision 2.27 by greg, Sat Aug 20 06:05:53 2011 UTC

# Line 480 | Line 480 | ray_popen(                     /* open the specified # processes */
480                  if (r_proc[ray_pnprocs].pid < 0)
481                          error(SYSTEM, "cannot fork child process");
482                  close(p1[0]); close(p0[1]);
483 +                if (rand_samp)          /* desynchronize random function */
484 +                        srandom((long)r_proc[ray_pnprocs].pid);
485                  /*
486                   * Close write stream on exec to avoid multiprocessing deadlock.
487                   * No use in read stream without it, so set flag there as well.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines