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.19 by gregl, Thu Sep 18 16:13:28 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 + #include <sys/select.h>
18   #include <sys/stat.h>
19                                          /* select call compatibility stuff */
20   #ifndef FD_SETSIZE
# Line 138 | Line 139 | pfhold()               /* holding pattern for idle rendering proces
139          sprintf(buf, "%s %d\n%s\n%s\n%s\n", progname, getpid(),
140                          inpname, outpname, errname);
141          n = strlen(buf);
141        lseek(persistfd, 0L, 0);
142          if (write(persistfd, buf, n) < n)
143                  error(SYSTEM, "error writing persist file");
144 +        lseek(persistfd, 0L, 0);
145                                  /* wait TIMELIM for someone to signal us */
146          got_io = 0;
147          signal(SIGIO, sig_io);
# Line 265 | Line 266 | io_process()           /* just act as go-between for actual pro
266                                  goto readerr;
267                          if (nr == 0) {
268                                  close(fderr);
269 <                                close(2);
269 >                                /* close(2);    don't close stderr! */
270                                  fderr = -1;
271                          } else
272                                  do {            /* write it all */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines