nsjail: don't restore console if nsjail runs in background
This commit is contained in:
parent
b3d544d155
commit
2c648d5879
2
kafel
2
kafel
@ -1 +1 @@
|
|||||||
Subproject commit 722b93a630e53ca472a4c69f61cb3dfc44ea5041
|
Subproject commit 8e69b8efae415cde3debffbb1e379d9e7a16835a
|
@ -226,7 +226,9 @@ int main(int argc, char* argv[]) {
|
|||||||
|
|
||||||
sandbox::closePolicy(nsjconf.get());
|
sandbox::closePolicy(nsjconf.get());
|
||||||
/* Try to restore the underlying console's params in case some program has changed it */
|
/* Try to restore the underlying console's params in case some program has changed it */
|
||||||
|
if (!nsjconf->daemonize) {
|
||||||
nsjail::setTC(STDIN_FILENO, trm.get());
|
nsjail::setTC(STDIN_FILENO, trm.get());
|
||||||
|
}
|
||||||
|
|
||||||
LOG_D("Returning with %d", ret);
|
LOG_D("Returning with %d", ret);
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user