# | 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. |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |