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.30 by schorsch, Mon Jul 14 20:02:30 2003 UTC vs.
Revision 2.33 by greg, Wed Oct 22 02:06:35 2003 UTC

# Line 13 | Line 13 | static const char      RCSid[] = "$Id$";
13   #include <signal.h>
14   #include <sys/stat.h>
15  
16 + #include "platform.h"
17   #include "rtprocess.h" /* getpid() */
18   #include "standard.h"
19   #include "random.h"
# Line 25 | Line 26 | static const char      RCSid[] = "$Id$";
26   #define TIMELIM         (8*3600)        /* time limit for holding pattern */
27   #endif
28  
28 #ifndef freebsd
29 #define mkfifo(fn,md)   mknod(fn, S_IFIFO|(md), 0)
30 #endif
31
29   extern void     io_process();
30  
31   extern int      headismine;     /* boolean true if header belongs to me */
# Line 140 | Line 137 | pfhold()               /* holding pattern for idle rendering proces
137          n = strlen(buf);
138          if (write(persistfd, buf, n) < n)
139                  error(SYSTEM, "error writing persist file");
140 <        lseek(persistfd, (off_t)0L, 0);
140 >        lseek(persistfd, (off_t)0, SEEK_SET);
141                                  /* wait TIMELIM for someone to signal us */
142          got_io = 0;
143          signal(SIGIO, sig_io);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines