File tree 1 file changed +7
-18
lines changed 1 file changed +7
-18
lines changed Original file line number Diff line number Diff line change @@ -23,42 +23,34 @@ static sigset_t block_sigset;
23
23
static sigset_t child_block_sigset ;
24
24
25
25
const char * fpm_signal_names [NSIG + 1 ] = {
26
+ /* The C standard guarantees at least these 6 signal numbers will be defined in signal.c: */
27
+ [SIGABRT ] = "SIGABRT" ,
28
+ [SIGFPE ] = "SIGFPE" ,
29
+ [SIGILL ] = "SIGILL" ,
30
+ [SIGINT ] = "SIGINT" ,
31
+ [SIGSEGV ] = "SIGSEGV" ,
32
+ [SIGTERM ] = "SIGTERM" ,
26
33
#ifdef SIGHUP
27
34
[SIGHUP ] = "SIGHUP" ,
28
35
#endif
29
- #ifdef SIGINT
30
- [SIGINT ] = "SIGINT" ,
31
- #endif
32
36
#ifdef SIGQUIT
33
37
[SIGQUIT ] = "SIGQUIT" ,
34
38
#endif
35
- #ifdef SIGILL
36
- [SIGILL ] = "SIGILL" ,
37
- #endif
38
39
#ifdef SIGTRAP
39
40
[SIGTRAP ] = "SIGTRAP" ,
40
41
#endif
41
- #ifdef SIGABRT
42
- [SIGABRT ] = "SIGABRT" ,
43
- #endif
44
42
#ifdef SIGEMT
45
43
[SIGEMT ] = "SIGEMT" ,
46
44
#endif
47
45
#ifdef SIGBUS
48
46
[SIGBUS ] = "SIGBUS" ,
49
47
#endif
50
- #ifdef SIGFPE
51
- [SIGFPE ] = "SIGFPE" ,
52
- #endif
53
48
#ifdef SIGKILL
54
49
[SIGKILL ] = "SIGKILL" ,
55
50
#endif
56
51
#ifdef SIGUSR1
57
52
[SIGUSR1 ] = "SIGUSR1" ,
58
53
#endif
59
- #ifdef SIGSEGV
60
- [SIGSEGV ] = "SIGSEGV" ,
61
- #endif
62
54
#ifdef SIGUSR2
63
55
[SIGUSR2 ] = "SIGUSR2" ,
64
56
#endif
@@ -68,9 +60,6 @@ const char *fpm_signal_names[NSIG + 1] = {
68
60
#ifdef SIGALRM
69
61
[SIGALRM ] = "SIGALRM" ,
70
62
#endif
71
- #ifdef SIGTERM
72
- [SIGTERM ] = "SIGTERM" ,
73
- #endif
74
63
#ifdef SIGCHLD
75
64
[SIGCHLD ] = "SIGCHLD" ,
76
65
#endif
You can’t perform that action at this time.
0 commit comments