--- ray/src/rt/persist.c 2003/07/14 20:02:30 2.30 +++ ray/src/rt/persist.c 2003/10/22 02:06:35 2.33 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: persist.c,v 2.30 2003/07/14 20:02:30 schorsch Exp $"; +static const char RCSid[] = "$Id: persist.c,v 2.33 2003/10/22 02:06:35 greg Exp $"; #endif /* * Routines for persistent rtrace and rpict processes. @@ -13,6 +13,7 @@ static const char RCSid[] = "$Id: persist.c,v 2.30 200 #include #include +#include "platform.h" #include "rtprocess.h" /* getpid() */ #include "standard.h" #include "random.h" @@ -25,10 +26,6 @@ static const char RCSid[] = "$Id: persist.c,v 2.30 200 #define TIMELIM (8*3600) /* time limit for holding pattern */ #endif -#ifndef freebsd -#define mkfifo(fn,md) mknod(fn, S_IFIFO|(md), 0) -#endif - extern void io_process(); extern int headismine; /* boolean true if header belongs to me */ @@ -140,7 +137,7 @@ pfhold() /* holding pattern for idle rendering proces n = strlen(buf); if (write(persistfd, buf, n) < n) error(SYSTEM, "error writing persist file"); - lseek(persistfd, (off_t)0L, 0); + lseek(persistfd, (off_t)0, SEEK_SET); /* wait TIMELIM for someone to signal us */ got_io = 0; signal(SIGIO, sig_io);