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

Comparing ray/src/rt/rtmain.c (file contents):
Revision 2.54 by greg, Tue Aug 20 18:57:11 2024 UTC vs.
Revision 2.55 by greg, Wed Aug 21 20:42:20 2024 UTC

# Line 21 | Line 21 | static const char      RCSid[] = "$Id$";
21  
22   extern char     *progname;              /* global argv[0] */
23  
24 extern char     *shm_boundary;          /* boundary of shared memory */
25
24                                          /* persistent processes define */
25   #ifdef  F_SETLKW
26   #define  PERSIST        1               /* normal persist */
# Line 453 | Line 451 | main(int  argc, char  *argv[])
451                  dup2(duped1, fileno(stdout));
452                  close(duped1);
453                  if (persist == PARALLEL) {      /* multiprocessing */
454 <                        preload_objs();         /* preload scene */
457 <                        shm_boundary = (char *)malloc(16);
458 <                        strcpy(shm_boundary, "SHM_BOUNDARY");
454 >                        cow_memshare();         /* preloads scene */
455                          while ((rval=fork()) == 0) {    /* keep on forkin' */
456                                  pflock(1);
457                                  pfhold();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines