--- ray/src/rt/persist.c 2003/06/30 14:59:12 2.29 +++ ray/src/rt/persist.c 2003/08/30 09:03:31 2.31 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: persist.c,v 2.29 2003/06/30 14:59:12 schorsch Exp $"; +static const char RCSid[] = "$Id: persist.c,v 2.31 2003/08/30 09:03:31 schorsch Exp $"; #endif /* * Routines for persistent rtrace and rpict processes. @@ -12,10 +12,8 @@ static const char RCSid[] = "$Id: persist.c,v 2.29 200 #include #include #include -#ifdef _WIN32 - #include /* getpid() */ -#endif +#include "rtprocess.h" /* getpid() */ #include "standard.h" #include "random.h" @@ -27,10 +25,6 @@ static const char RCSid[] = "$Id: persist.c,v 2.29 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 */ @@ -90,6 +84,7 @@ int lf; } +void persistfile(pfn) /* open persist file and lock it */ char *pfn; {