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

Comparing ray/src/px/d48c.c (file contents):
Revision 1.3 by greg, Sat Feb 22 02:07:27 2003 UTC vs.
Revision 1.4 by schorsch, Mon Oct 27 10:24:51 2003 UTC

# Line 8 | Line 8 | static const char      RCSid[] = "$Id$";
8   */
9  
10   #include  <stdio.h>
11
11   #include  <signal.h>
12  
13 + #include  "rterror.h"
14   #include  "color.h"
15  
16  
# Line 127 | Line 127 | main(argc, argv)
127   int  argc;
128   char  *argv[];
129   {
130        int  quit();
130          int  i;
131  
132          if (signal(SIGINT, quit) == SIG_IGN)
133                  signal(SIGINT, SIG_IGN);
134 + #ifdef SIGHUP
135          if (signal(SIGHUP, quit) == SIG_IGN)
136                  signal(SIGINT, SIG_IGN);
137 + #endif
138          signal(SIGTERM, quit);
139 + #ifdef SIGPIPE
140          signal(SIGPIPE, quit);
141 + #endif
142 + #ifdef SIGXCPU
143          signal(SIGXCPU, quit);
144 + #endif
145 + #ifdef SIGXFSZ
146          signal(SIGXFSZ, quit);
147 + #endif
148  
149          progname = argv[0];
150  
# Line 182 | Line 189 | char  *cname;
189  
190  
191   void
192 < quit(code)                      /* quit program */
186 < int  code;
192 > quit(int code)                  /* quit program */
193   {
194          int  i;
195  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines