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.18 by greg, Mon Jul 22 18:09:26 1996 UTC

# Line 138 | Line 138 | pfhold()               /* holding pattern for idle rendering proces
138          sprintf(buf, "%s %d\n%s\n%s\n%s\n", progname, getpid(),
139                          inpname, outpname, errname);
140          n = strlen(buf);
141        lseek(persistfd, 0L, 0);
141          if (write(persistfd, buf, n) < n)
142                  error(SYSTEM, "error writing persist file");
143 +        lseek(persistfd, 0L, 0);
144                                  /* wait TIMELIM for someone to signal us */
145          got_io = 0;
146          signal(SIGIO, sig_io);
# Line 265 | Line 265 | io_process()           /* just act as go-between for actual pro
265                                  goto readerr;
266                          if (nr == 0) {
267                                  close(fderr);
268 <                                close(2);
268 >                                /* close(2);    don't close stderr! */
269                                  fderr = -1;
270                          } else
271                                  do {            /* write it all */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines