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.23 by gregl, Tue Nov 11 20:29:25 1997 UTC vs.
Revision 2.25 by gregl, Sat Jan 3 20:07:31 1998 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1996 Regents of the University of California */
1 > /* Copyright (c) 1997 Silicon Graphics, Inc. */
2  
3   #ifndef lint
4 < static char SCCSid[] = "$SunId$ LBL";
4 > static char SCCSid[] = "$SunId$ SGI";
5   #endif
6  
7   /*
# Line 9 | Line 9 | static char SCCSid[] = "$SunId$ LBL";
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)
# Line 269 | Line 270 | io_process()           /* just act as go-between for actual pro
270                                  close(fderr);
271                                  /* close(2);    don't close stderr! */
272                                  fderr = -1;
273 <                        } else
273 >                        } else {
274                                  cp[nr] = '\0';  /* deduce status if we can */
275                                  n = strlen(progname);
276                                  if (!strncmp(cp, progname, n) &&
# Line 290 | Line 291 | io_process()           /* just act as go-between for actual pro
291                                                  goto writerr;
292                                          cp += n;
293                                  } while ((nr -= n) > 0);
294 +                        }
295                  }
296                                                  /* renderer stdout */
297                  if (fdout >= 0 && (FD_ISSET(fdout, &readfds) ||

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines