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.17 by greg, Fri Jul 19 10:16:00 1996 UTC vs.
Revision 2.20 by gregl, Thu Oct 16 13:49:22 1997 UTC

# Line 14 | Line 14 | static char SCCSid[] = "$SunId$ LBL";
14   #include "paths.h"
15   #include <signal.h>
16   #include <sys/types.h>
17 + #ifdef INCL_SEL_H
18 + #include <sys/select.h>
19 + #endif
20   #include <sys/stat.h>
21                                          /* select call compatibility stuff */
22   #ifndef FD_SETSIZE
# Line 138 | Line 141 | pfhold()               /* holding pattern for idle rendering proces
141          sprintf(buf, "%s %d\n%s\n%s\n%s\n", progname, getpid(),
142                          inpname, outpname, errname);
143          n = strlen(buf);
141        lseek(persistfd, 0L, 0);
144          if (write(persistfd, buf, n) < n)
145                  error(SYSTEM, "error writing persist file");
146 +        lseek(persistfd, 0L, 0);
147                                  /* wait TIMELIM for someone to signal us */
148          got_io = 0;
149          signal(SIGIO, sig_io);
# Line 265 | Line 268 | io_process()           /* just act as go-between for actual pro
268                                  goto readerr;
269                          if (nr == 0) {
270                                  close(fderr);
271 <                                close(2);
271 >                                /* close(2);    don't close stderr! */
272                                  fderr = -1;
273                          } else
274                                  do {            /* write it all */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines