9 |
|
#include <sys/stat.h> |
10 |
|
#include <string.h> |
11 |
|
|
12 |
– |
#include "rholo.h" |
12 |
|
#include "platform.h" |
13 |
+ |
#include "rholo.h" |
14 |
|
#include "random.h" |
15 |
|
|
16 |
|
#ifndef FRAGWARN |
270 |
|
} |
271 |
|
/* set up signal handling */ |
272 |
|
sigdie(SIGINT, "Interrupt"); |
273 |
– |
sigdie(SIGHUP, "Hangup"); |
273 |
|
sigdie(SIGTERM, "Terminate"); |
274 |
+ |
#ifdef SIGHUP |
275 |
+ |
sigdie(SIGHUP, "Hangup"); |
276 |
+ |
#endif |
277 |
+ |
#ifdef SIGPIPE |
278 |
|
sigdie(SIGPIPE, "Broken pipe"); |
279 |
+ |
#endif |
280 |
+ |
#ifdef SIGALRM |
281 |
|
sigdie(SIGALRM, "Alarm clock"); |
282 |
+ |
#endif |
283 |
|
#ifdef SIGXCPU |
284 |
|
sigdie(SIGXCPU, "CPU limit exceeded"); |
285 |
+ |
#endif |
286 |
+ |
#ifdef SIGXFSZ |
287 |
|
sigdie(SIGXFSZ, "File size exceeded"); |
288 |
|
#endif |
289 |
|
/* protect holodeck file */ |