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

Comparing ray/src/rt/persist.c (file contents):
Revision 2.24 by gregl, Mon Nov 24 15:13:33 1997 UTC vs.
Revision 2.25 by gregl, Sat Jan 3 20:07:31 1998 UTC

# Line 9 | Line 9 | static char SCCSid[] = "$SunId$ SGI";
9   */
10  
11   #include "standard.h"
12 + #include "random.h"
13  
14   #ifdef F_SETLKW
15   #include "paths.h"
# Line 178 | Line 179 | io_process()           /* just act as go-between for actual pro
179                  if (!n--)
180                          error(USER, "unattended persist file?");
181                  pflock(0);
182 <                sleep(15);              /* wait until ready */
182 >                sleep(3+(3*getpid()+random())%13);      /* wait until ready */
183                  pflock(1);
184          }
185          if (nr < 0)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines