--- ray/src/rt/persist.c 2006/06/07 17:52:04 2.38 +++ ray/src/rt/persist.c 2008/05/01 15:50:28 2.41 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: persist.c,v 2.38 2006/06/07 17:52:04 schorsch Exp $"; +static const char RCSid[] = "$Id: persist.c,v 2.41 2008/05/01 15:50:28 greg Exp $"; #endif /* * Routines for persistent rtrace and rpict processes. @@ -13,9 +13,12 @@ static const char RCSid[] = "$Id: persist.c,v 2.38 200 #include #include #include -#include #include "platform.h" +#ifndef NON_POSIX /* XXX need abstraction for process management */ + #include +#endif + #include "rtprocess.h" /* getpid() */ #include "standard.h" #include "random.h" @@ -154,12 +157,6 @@ pfhold(void) /* holding pattern for idle rendering pr signal(SIGIO, SIG_DFL); pflock(1); /* grab persist file back */ /* someone wants us; reopen stdin and stdout */ - /* - if (freopen(inpname, "r", stdin) == NULL) - goto openerr; - if (freopen(outpname, "w", stdout) == NULL) - goto openerr; - */ close(0); if (open(inpname, O_RDONLY) != 0) error(INTERNAL, "unexpected stdin file number"); @@ -182,8 +179,6 @@ pfhold(void) /* holding pattern for idle rendering pr return; createrr: error(SYSTEM, "cannot create named pipes in pfhold"); -openerr: - error(SYSTEM, "cannot open named pipes in pfhold"); }