Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(501)

Unified Diff: sandbox/linux/services/namespace_sandbox.cc

Issue 1158793003: Enable one PID namespace per process for NaCl processes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Enable PID namespace per process for nonsfi newlib NaCl as well. Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sandbox/linux/services/namespace_sandbox.h ('k') | sandbox/linux/services/namespace_sandbox_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/linux/services/namespace_sandbox.cc
diff --git a/sandbox/linux/services/namespace_sandbox.cc b/sandbox/linux/services/namespace_sandbox.cc
index a4f4f1bc0e4bf39a6f62171847947b23a17299b3..4b2e5886bdf7cff9c605daa43ee67118627668eb 100644
--- a/sandbox/linux/services/namespace_sandbox.cc
+++ b/sandbox/linux/services/namespace_sandbox.cc
@@ -80,7 +80,7 @@ void TerminationSignalHandler(int sig) {
_exit(g_signal_exit_codes[sig_idx]);
}
- _exit(NamespaceSandbox::kDefaultExitCode);
+ _exit(NamespaceSandbox::SignalExitCode(sig));
}
} // namespace
@@ -161,7 +161,7 @@ void NamespaceSandbox::InstallDefaultTerminationSignalHandlers() {
};
for (const int sig : kDefaultTermSignals) {
- InstallTerminationSignalHandler(sig, kDefaultExitCode);
+ InstallTerminationSignalHandler(sig, SignalExitCode(sig));
}
}
« no previous file with comments | « sandbox/linux/services/namespace_sandbox.h ('k') | sandbox/linux/services/namespace_sandbox_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698