diff options
Diffstat (limited to 'libbb/signals.c')
-rw-r--r-- | libbb/signals.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libbb/signals.c b/libbb/signals.c index 1929cb88e..a327e87c8 100644 --- a/libbb/signals.c +++ b/libbb/signals.c @@ -82,13 +82,8 @@ void sig_pause(void) /* Assuming the sig is fatal */ void kill_myself_with_sig(int sig) { - sigset_t set; - signal(sig, SIG_DFL); - - sigemptyset(&set); - sigaddset(&set, sig); - sigprocmask(SIG_UNBLOCK, &set, NULL); + sig_unblock(sig); raise(sig); _exit(1); /* Should not reach it */ } |