fix: restore signal mask must not use 0
This commit is contained in:
parent
52744c9301
commit
39960cc205
1 changed files with 1 additions and 1 deletions
|
|
@ -156,7 +156,7 @@ clixon_signal_restore(sigset_t *sigset,
|
|||
int retval = -1;
|
||||
int i;
|
||||
|
||||
if (sigprocmask(0, sigset, NULL) < 0){
|
||||
if (sigprocmask(SIG_SETMASK, sigset, NULL) < 0){
|
||||
clicon_err(OE_UNIX, errno, "sigprocmask");
|
||||
goto done;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue