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.34 by schorsch, Tue Mar 30 16:13:01 2004 UTC vs.
Revision 2.37 by greg, Fri Jan 21 00:52:59 2005 UTC

# Line 121 | Line 121 | pfhold(void)           /* holding pattern for idle rendering pr
121          char    buf[512];
122          register int    n;
123                                  /* close input and output descriptors */
124 <        close(fileno(stdin));
125 <        close(fileno(stdout));
124 >        close(0);
125 >        close(1);
126          if (errfile == NULL)
127 <                close(fileno(stderr));
127 >                close(2);
128                                  /* create named pipes for input and output */
129          if (mkfifo(mktemp(strcpy(inpname,TEMPLATE)), 0600) < 0)
130                  goto createrr;
# Line 335 | Line 335 | io_process(void)               /* just act as go-between for actual
335                                  } while ((nr -= n) > 0);
336                  }
337          }
338 <        wait(0);                /* wait for feeder process */ /* XXX platform */
338 >        kill(pid, SIGTERM);     /* no more process to feed, so... */
339 >        waitpid(pid, 0, 0);     /* wait for feeder process */
340          _exit(status);
341   formerr:
342          error(USER, "format error in persist file");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines