--- ray/src/rt/persist.c 2004/09/19 07:24:37 2.36 +++ ray/src/rt/persist.c 2006/06/07 17:52:04 2.38 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: persist.c,v 2.36 2004/09/19 07:24:37 greg Exp $"; +static const char RCSid[] = "$Id: persist.c,v 2.38 2006/06/07 17:52:04 schorsch Exp $"; #endif /* * Routines for persistent rtrace and rpict processes. @@ -12,6 +12,8 @@ static const char RCSid[] = "$Id: persist.c,v 2.36 200 #include #include #include +#include +#include #include "platform.h" #include "rtprocess.h" /* getpid() */ @@ -121,10 +123,10 @@ pfhold(void) /* holding pattern for idle rendering pr char buf[512]; register int n; /* close input and output descriptors */ - close(fileno(stdin)); - close(fileno(stdout)); + close(0); + close(1); if (errfile == NULL) - close(fileno(stderr)); + close(2); /* create named pipes for input and output */ if (mkfifo(mktemp(strcpy(inpname,TEMPLATE)), 0600) < 0) goto createrr;