diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-09-23 01:32:44 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-09-29 21:08:37 +0200 |
commit | 189d5bac5c45a6a735489541e285dec8bfc1d38d (patch) | |
tree | 955cf1bb252323c0f7720d88971de65ddbc0a290 /src/core | |
parent | e6e242ad2d5f72573ceb4442242789aa23962cd2 (diff) |
util: unify implementation of NOP signal handler
This is highly complex code after all, we really should make sure to
only keep one implementation of this extremely difficult function
around.
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/main.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/main.c b/src/core/main.c index dac233e84d..76abb0bde9 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -115,8 +115,6 @@ static bool arg_default_blockio_accounting = false; static bool arg_default_memory_accounting = false; static bool arg_default_tasks_accounting = false; -static void nop_handler(int sig) {} - static void pager_open_if_enabled(void) { if (arg_no_pager <= 0) @@ -134,7 +132,7 @@ noreturn static void crash(int sig) { log_emergency("Caught <%s>, not dumping core.", signal_to_string(sig)); else { struct sigaction sa = { - .sa_handler = nop_handler, + .sa_handler = nop_signal_handler, .sa_flags = SA_NOCLDSTOP|SA_RESTART, }; pid_t pid; |