mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-30 05:48:18 +00:00
Use SIG_SETMASK when resetting signal mask instead of SIG_UNBLOCK.
This commit is contained in:
parent
01c7840dc5
commit
ece29bdea1
@ -131,8 +131,8 @@ main(int argc, char *argv[], char *envp[])
|
||||
errorx(1, "must be setuid root");
|
||||
|
||||
/* Reset signal mask, disable core dumps and make sure fds 0-2 are open. */
|
||||
(void) sigfillset(&mask);
|
||||
(void) sigprocmask(SIG_UNBLOCK, &mask, NULL);
|
||||
(void) sigemptyset(&mask);
|
||||
(void) sigprocmask(SIG_SETMASK, &mask, NULL);
|
||||
disable_coredumps();
|
||||
fix_fds();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user