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

Comparing ray/src/rt/rmain.c (file contents):
Revision 1.7 by greg, Fri May 26 19:52:13 1989 UTC vs.
Revision 1.8 by greg, Thu Jun 1 14:14:53 1989 UTC

# Line 38 | Line 38 | char  *progname;                       /* argv[0] */
38  
39   char  *libpath;                         /* library directory list */
40  
41 int  diemask = 0;                       /* signals we catch */
41   char  *sigerr[NSIG];                    /* signal error messages */
42  
43   extern int  stderr_v();                 /* standard error output */
# Line 346 | Line 345 | unkopt:
345   #endif
346   #if  RPICT
347          signal(SIGALRM, report);
349 #ifdef  BSD
350        diemask |= sigmask(SIGALRM);
351 #endif
348   #else
349          sigdie(SIGALRM, "Alarm clock");
350   #endif
# Line 454 | Line 450 | register char  *s;
450   onsig(signo)                            /* fatal signal */
451   int  signo;
452   {
453 < #ifdef  BSD
454 <        sigblock(diemask);
455 < #endif
453 >        static int  gotsig = 0;
454 >
455 >        if (gotsig++)                   /* two signals and we're gone! */
456 >                _exit(127);
457 >
458          eputs("signal - ");
459          eputs(sigerr[signo]);
460          eputs("\n");
# Line 470 | Line 468 | char  *msg;
468   {
469          if (signal(signo, onsig) == SIG_IGN)
470                  signal(signo, SIG_IGN);
473 #ifdef  BSD
474        else
475                diemask |= sigmask(signo);
476 #endif
471          sigerr[signo] = msg;
472   }
473  

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)