diff options
Diffstat (limited to 'src/signal.c')
-rw-r--r-- | src/signal.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/signal.c b/src/signal.c index 0676e60..7d00bc9 100644 --- a/src/signal.c +++ b/src/signal.c @@ -35,7 +35,7 @@ static int my_sigaction(int signo, const struct sigaction *act) return ret; } -int signal_handle_stop_signals(void) +int signal_handle_stops(void) { int ret = 0; @@ -75,12 +75,7 @@ int signal_block_all(sigset_t *old) return signal_set(&new, old); } -int signal_restore(const sigset_t *new) -{ - return signal_set(new, NULL); -} - -int signal_unblock_all_except_stop_signals(void) +int signal_block_stops(void) { sigset_t set; sigemptyset(&set); @@ -90,3 +85,8 @@ int signal_unblock_all_except_stop_signals(void) return signal_set(&set, NULL); } + +int signal_restore(const sigset_t *new) +{ + return signal_set(new, NULL); +} |