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

Comparing ray/src/rt/rtmain.c (file contents):
Revision 2.4 by schorsch, Thu Jun 5 19:29:34 2003 UTC vs.
Revision 2.6 by schorsch, Mon Jun 30 14:59:12 2003 UTC

# Line 9 | Line 9 | static const char      RCSid[] = "$Id$";
9  
10   #include  <sys/types.h>
11   #include  <signal.h>
12 + #ifdef _WIN32
13 + #include <process.h> /* getpid() */
14 + #endif
15  
16   #include  "platform.h"
17   #include  "ray.h"
# Line 234 | Line 237 | char  *argv[];
237          initurand(2048);
238                                          /* set up signal handling */
239          sigdie(SIGINT, "Interrupt");
240 + #ifdef SIGHUP
241          sigdie(SIGHUP, "Hangup");
242 + #endif
243          sigdie(SIGTERM, "Terminate");
244 + #ifdef SIGPIPE
245          sigdie(SIGPIPE, "Broken pipe");
246 + #endif
247 + #ifdef SIGALRM
248          sigdie(SIGALRM, "Alarm clock");
249 + #endif
250   #ifdef  SIGXCPU
251          sigdie(SIGXCPU, "CPU limit exceeded");
252          sigdie(SIGXFSZ, "File size exceeded");
# Line 387 | Line 396 | int  signo;
396          if (gotsig++)                   /* two signals and we're gone! */
397                  _exit(signo);
398  
399 + #ifdef SIGALRM
400          alarm(15);                      /* allow 15 seconds to clean up */
401          signal(SIGALRM, SIG_DFL);       /* make certain we do die */
402 + #endif
403          eputs("signal - ");
404          eputs(sigerr[signo]);
405          eputs("\n");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines