projects
/
platform
/
upstream
/
nsjail.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a415506
)
subproc: use SIG_SETMASK to unblock all signals
author
Robert Swiecki
<robert@swiecki.net>
Fri, 20 Oct 2017 13:56:32 +0000
(15:56 +0200)
committer
Robert Swiecki
<robert@swiecki.net>
Fri, 20 Oct 2017 13:56:32 +0000
(15:56 +0200)
subproc.c
patch
|
blob
|
history
diff --git
a/subproc.c
b/subproc.c
index dc860e7eacebd77d70376d237d71a8d1e524b38c..77d895aa713cbae2c8ed1010d57f3bd5463aabb5 100644
(file)
--- a/
subproc.c
+++ b/
subproc.c
@@
-122,9
+122,9
@@
static bool subprocReset(void)
}
/* Unblock all signals */
sigset_t sset;
- sig
fill
set(&sset);
- if (sigprocmask(SIG_
UNBLOC
K, &sset, NULL) == -1) {
- PLOG_W("
Couldn't unblock signals via sigprocmask(SIG_UNBLOCK
)");
+ sig
empty
set(&sset);
+ if (sigprocmask(SIG_
SETMAS
K, &sset, NULL) == -1) {
+ PLOG_W("
sigprocmask(SIG_SET, empty
)");
return false;
}
return true;