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:
a2d0e70
)
nsjail: ignore SIGTTIN/SIGTTOU
author
Robert Swiecki
<robert@swiecki.net>
Thu, 15 Feb 2018 00:33:33 +0000
(
01:33
+0100)
committer
Robert Swiecki
<robert@swiecki.net>
Thu, 15 Feb 2018 00:33:33 +0000
(
01:33
+0100)
nsjail.cc
patch
|
blob
|
history
nsjail.h
patch
|
blob
|
history
diff --git
a/nsjail.cc
b/nsjail.cc
index 19632c5ce117eb038cbd58008c00473fd6e3e599..3b53077eb1b2e4fce5bdf776942a2827c66bd2b6 100644
(file)
--- a/
nsjail.cc
+++ b/
nsjail.cc
@@
-65,6
+65,10
@@
static bool nsjailSetSigHandler(int sig) {
sa.sa_mask = smask;
sa.sa_flags = 0;
sa.sa_restorer = NULL;
+
+ if (sig == SIGTTIN || sig == SIGTTOU) {
+ sa.sa_handler = SIG_IGN;
+ };
if (sigaction(sig, &sa, NULL) == -1) {
PLOG_E("sigaction(%d)", sig);
return false;
diff --git
a/nsjail.h
b/nsjail.h
index a7d180cc28824d70ffd2ddbcd69fc537e4d35bb7..cabad36ca32a128dd5535b7218aa7bd47d36639e 100644
(file)
--- a/
nsjail.h
+++ b/
nsjail.h
@@
-44,6
+44,8
@@
static const int nssigs[] = {
SIGALRM,
SIGCHLD,
SIGTERM,
+ SIGTTIN,
+ SIGTTOU,
};
struct pids_t {