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

Comparing ray/src/gen/mkillum.c (file contents):
Revision 2.24 by greg, Wed May 25 04:44:25 2005 UTC vs.
Revision 2.26 by schorsch, Mon Sep 19 11:30:10 2005 UTC

# Line 157 | Line 157 | main(          /* compute illum distributions using rtrace */
157          quit(0);
158   }
159  
160 +
161 + #ifndef SIGALRM
162 + #define SIGALRM SIGTERM
163 + #endif
164   static void
165   killpersist(void)                       /* kill persistent rtrace process */
166   {
# Line 170 | Line 174 | killpersist(void)                      /* kill persistent rtrace process
174          fclose(fp);
175   }
176  
177 +
178   int
179   done_rprocs(struct rtproc *rtp)
180   {
# Line 213 | Line 218 | init(int np)                           /* start rtrace and set up buffers */
218          ofun[OBJ_SPHERE].funp = o_sphere;
219          ofun[OBJ_RING].funp = o_ring;
220                                          /* set up signal handling */
221 < #ifdef SIGPIPE /* not present on Windows */
221 >        signal(SIGINT, quit);
222 > #ifdef SIGHUP
223 >        signal(SIGHUP, quit);
224 > #endif
225 > #ifdef SIGTERM
226 >        signal(SIGTERM, quit);
227 > #endif
228 > #ifdef SIGPIPE
229          signal(SIGPIPE, quit);
230   #endif
231          rtp = &rt0;                     /* start rtrace process(es) */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines