summaryrefslogtreecommitdiff
path: root/libbb/signals.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/signals.c')
-rw-r--r--libbb/signals.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/libbb/signals.c b/libbb/signals.c
index 1929cb8..a327e87 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 */
}