X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Futil.c;h=28e29ff47851ea105278f1ec51f19147c64d8789;hb=a60149bda6fb245c1ed2422a92027a7a0b1b40de;hp=4eb1d27069a59ce0dfe99b4d490dd3c2503ca1be;hpb=5359a35808adfc37bd7fba849daee45da6a60a71;p=elogind.git diff --git a/src/shared/util.c b/src/shared/util.c index 4eb1d2706..28e29ff47 100644 --- a/src/shared/util.c +++ b/src/shared/util.c @@ -2280,8 +2280,8 @@ static int do_execute(char **directories, usec_t timeout, char *argv[]) { /* 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(); - reset_signal_mask(); + (void) reset_all_signal_handlers(); + (void) reset_signal_mask(); assert_se(prctl(PR_SET_PDEATHSIG, SIGTERM) == 0); @@ -3323,8 +3323,8 @@ int fork_agent(pid_t *pid, const int except[], unsigned n_except, const char *pa /* Make sure we actually can kill the agent, if we need to, in * case somebody invoked us from a shell script that trapped * SIGTERM or so... */ - reset_all_signal_handlers(); - reset_signal_mask(); + (void) reset_all_signal_handlers(); + (void) reset_signal_mask(); /* Check whether our parent died before we were able * to set the death signal and unblock the signals */