Lines 922-928
Link Here
|
922 |
if (sigaction (signal, &action, NULL) == -1) |
922 |
if (sigaction (signal, &action, NULL) == -1) |
923 |
{ |
923 |
{ |
924 |
g_critical ("%s: failed to register %s handler", |
924 |
g_critical ("%s: failed to register %s handler", |
925 |
__FUNCTION__, sys_siglist[signal]); |
925 |
__FUNCTION__, strsignal(termination_signal)); |
926 |
exit (EXIT_FAILURE); |
926 |
exit (EXIT_FAILURE); |
927 |
} |
927 |
} |
928 |
} |
928 |
} |
Lines 953-959
Link Here
|
953 |
if (sigaction (signal, &action, NULL) == -1) |
953 |
if (sigaction (signal, &action, NULL) == -1) |
954 |
{ |
954 |
{ |
955 |
g_critical ("%s: failed to register %s handler", |
955 |
g_critical ("%s: failed to register %s handler", |
956 |
__FUNCTION__, sys_siglist[signal]); |
956 |
__FUNCTION__, strsignal(termination_signal)); |
957 |
exit (EXIT_FAILURE); |
957 |
exit (EXIT_FAILURE); |
958 |
} |
958 |
} |
959 |
} |
959 |
} |
Lines 1258-1264
Link Here
|
1258 |
if (termination_signal) |
1258 |
if (termination_signal) |
1259 |
{ |
1259 |
{ |
1260 |
g_debug ("Received %s signal", |
1260 |
g_debug ("Received %s signal", |
1261 |
sys_siglist[termination_signal]); |
1261 |
strsignal(termination_signal)); |
1262 |
cleanup (); |
1262 |
cleanup (); |
1263 |
/* Raise signal again, to exit with the correct return value. */ |
1263 |
/* Raise signal again, to exit with the correct return value. */ |
1264 |
setup_signal_handler (termination_signal, SIG_DFL, 0); |
1264 |
setup_signal_handler (termination_signal, SIG_DFL, 0); |
Lines 1347-1353
Link Here
|
1347 |
if (termination_signal) |
1347 |
if (termination_signal) |
1348 |
{ |
1348 |
{ |
1349 |
g_debug ("Received %s signal", |
1349 |
g_debug ("Received %s signal", |
1350 |
sys_siglist[termination_signal]); |
1350 |
strsignal(termination_signal)); |
1351 |
cleanup (); |
1351 |
cleanup (); |
1352 |
/* Raise signal again, to exit with the correct return value. */ |
1352 |
/* Raise signal again, to exit with the correct return value. */ |
1353 |
setup_signal_handler (termination_signal, SIG_DFL, 0); |
1353 |
setup_signal_handler (termination_signal, SIG_DFL, 0); |