ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/raypcalls.c
(Generate patch)

Comparing ray/src/rt/raypcalls.c (file contents):
Revision 2.14 by greg, Wed Dec 21 17:36:06 2005 UTC vs.
Revision 2.15 by greg, Wed Sep 12 03:57:00 2007 UTC

# Line 396 | Line 396 | ray_pchild(    /* process rays (never returns) */
396   {
397          int     n;
398          register int    i;
399 +                                        /* flag child process for quit() */
400 +        ray_pnprocs = -1;
401                                          /* read each ray request set */
402          while ((n = read(fd_in, (char *)r_queue, sizeof(r_queue))) > 0) {
403                  int     n2;
# Line 519 | Line 521 | void
521   quit(ec)                        /* make sure exit is called */
522   int     ec;
523   {
524 +        if (ray_pnprocs > 0)    /* close children if any */
525 +                ray_pclose(0);          
526          exit(ec);
527   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines