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

Comparing ray/src/rt/rpmain.c (file contents):
Revision 2.3 by schorsch, Thu Jun 5 19:29:34 2003 UTC vs.
Revision 2.4 by schorsch, Thu Jun 26 00:58:10 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 228 | Line 231 | char  *argv[];
231          initurand(2048);
232                                          /* set up signal handling */
233          sigdie(SIGINT, "Interrupt");
234 + #ifdef SIGHUP
235          sigdie(SIGHUP, "Hangup");
236 + #endif
237          sigdie(SIGTERM, "Terminate");
238 + #ifdef SIGPIPE
239          sigdie(SIGPIPE, "Broken pipe");
240 + #endif
241 + #ifdef SIGALRM
242          sigdie(SIGALRM, "Alarm clock");
243 + #endif
244   #ifdef  SIGXCPU
245          sigdie(SIGXCPU, "CPU limit exceeded");
246          sigdie(SIGXFSZ, "File size exceeded");
# Line 392 | Line 401 | int  signo;
401          if (gotsig++)                   /* two signals and we're gone! */
402                  _exit(signo);
403  
404 + #ifdef SIGALRM /* XXX how critical is this? */
405          alarm(15);                      /* allow 15 seconds to clean up */
406          signal(SIGALRM, SIG_DFL);       /* make certain we do die */
407 + #endif
408          eputs("signal - ");
409          eputs(sigerr[signo]);
410          eputs("\n");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines