196 |
|
error(USER, err); |
197 |
|
/* set up signal handling */ |
198 |
|
sigdie(SIGINT, "Interrupt"); |
199 |
– |
sigdie(SIGHUP, "Hangup"); |
199 |
|
sigdie(SIGTERM, "Terminate"); |
200 |
+ |
#ifndef _WIN32 |
201 |
+ |
sigdie(SIGHUP, "Hangup"); |
202 |
|
sigdie(SIGPIPE, "Broken pipe"); |
203 |
|
sigdie(SIGALRM, "Alarm clock"); |
204 |
+ |
#endif |
205 |
|
/* open error file */ |
206 |
|
if (errfile != NULL) { |
207 |
|
if (freopen(errfile, "a", stderr) == NULL) |
227 |
|
/* set up output & start process(es) */ |
228 |
|
SET_FILE_BINARY(stdout); |
229 |
|
|
230 |
< |
ray_pinit(octnm, 0); |
230 |
> |
ray_init(octnm); |
231 |
|
|
232 |
|
rview(); /* run interactive viewer */ |
233 |
|
|
287 |
|
if (gotsig++) /* two signals and we're gone! */ |
288 |
|
_exit(signo); |
289 |
|
|
290 |
+ |
#ifndef _WIN32 |
291 |
|
alarm(15); /* allow 15 seconds to clean up */ |
292 |
|
signal(SIGALRM, SIG_DFL); /* make certain we do die */ |
293 |
+ |
#endif |
294 |
|
eputs("signal - "); |
295 |
|
eputs(sigerr[signo]); |
296 |
|
eputs("\n"); |