# | Line 11 | Line 11 | static const char RCSid[] = "$Id$"; | |
---|---|---|
11 | #include <signal.h> | |
12 | ||
13 | #include "standard.h" | |
14 | + | #include "platform.h" |
15 | #include "color.h" | |
16 | #include "view.h" | |
17 | #include "paths.h" | |
# | Line 97 | Line 98 | char **argv; | |
98 | SET_FILE_BINARY(stdout); | |
99 | if (signal(SIGINT, quit) == SIG_IGN) | |
100 | signal(SIGINT, SIG_IGN); | |
101 | + | #ifdef SIGHUP |
102 | if (signal(SIGHUP, quit) == SIG_IGN) | |
103 | signal(SIGHUP, SIG_IGN); | |
104 | + | #endif |
105 | signal(SIGTERM, quit); | |
106 | + | #ifdef SIGPIPE |
107 | signal(SIGPIPE, quit); | |
108 | + | #endif |
109 | #ifdef SIGXCPU | |
110 | signal(SIGXCPU, quit); | |
111 | signal(SIGXFSZ, quit); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |