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

Comparing ray/src/hd/rholo.c (file contents):
Revision 3.46 by gwlarson, Thu Jan 7 22:05:34 1999 UTC vs.
Revision 3.48 by gwlarson, Tue Feb 2 16:13:24 1999 UTC

# Line 150 | Line 150 | int  signo;
150   {
151          static int  gotsig = 0;
152  
153 <        if (gotsig++)                   /* two signals and we're gone! */
153 >        if (gotsig > 1)                 /* we're going as fast as we can! */
154 >                return;
155 >        if (gotsig++) {                 /* two signals and we split */
156 >                hdsync(NULL, 0);        /* don't leave w/o saying goodbye */
157                  _exit(signo);
158 <
159 <        alarm(180);                     /* allow 3 minutes to clean up */
157 <        signal(SIGALRM, SIG_DFL);       /* make certain we do die */
158 >        }
159 >        alarm(300);                     /* allow 5 minutes to clean up */
160          eputs("signal - ");
161          eputs(sigerr[signo]);
162          eputs("\n");
# Line 316 | Line 318 | rholo()                                /* holodeck main loop */
318          if (reporttime > 0 && t >= reporttime)
319                  report(t);
320                                          /* figure out good packet size */
321 +        pksiz = RPACKSIZ;
322   #if MAXQTIME
323 <        pksiz = nraysdone*MAXQTIME/(totqlen*(t - starttime + 1L));
324 <        if (pksiz < 1)
325 <                pksiz = 1;
326 <        else if (pksiz > RPACKSIZ)
323 >        if (!chunkycmp) {
324 >                pksiz = nraysdone*MAXQTIME/(totqlen*(t - starttime + 1L));
325 >                if (pksiz < 1) pksiz = 1;
326 >                else if (pksiz > RPACKSIZ) pksiz = RPACKSIZ;
327 >        }
328   #endif
325                pksiz = RPACKSIZ;
329          idle = 0;                       /* get packets to process */
330          while (freepacks != NULL) {
331                  p = freepacks; freepacks = p->next; p->next = NULL;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines