diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-08-26 21:11:35 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-08-26 21:12:54 +0200 |
commit | 1b6d7fa742e303611dff8d7ebfa86ee5fb8b7dc7 (patch) | |
tree | 78fac28279b79bbf5465ce1b26b4200f55373e7e /src/shared/util.c | |
parent | 1dedb74a2e1d840b531b76b01a76979f3b57456b (diff) |
util: make use of newly added reset_signal_mask() call wherever appropriate
Diffstat (limited to 'src/shared/util.c')
-rw-r--r-- | src/shared/util.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/shared/util.c b/src/shared/util.c index 98c07163da..fdcf5719fa 100644 --- a/src/shared/util.c +++ b/src/shared/util.c @@ -3890,16 +3890,13 @@ void execute_directory(const char *directory, DIR *d, usec_t timeout, char *argv _cleanup_hashmap_free_free_ Hashmap *pids = NULL; _cleanup_closedir_ DIR *_d = NULL; struct dirent *de; - sigset_t ss; /* We fork this all off from a child process so that * we can somewhat cleanly make use of SIGALRM to set * a time limit */ reset_all_signal_handlers(); - - assert_se(sigemptyset(&ss) == 0); - assert_se(sigprocmask(SIG_SETMASK, &ss, NULL) == 0); + reset_signal_mask(); assert_se(prctl(PR_SET_PDEATHSIG, SIGTERM) == 0); |