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

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: Respond to comments. Created 5 years, 7 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
Index: sandbox/linux/services/namespace_sandbox.cc
diff --git a/sandbox/linux/services/namespace_sandbox.cc b/sandbox/linux/services/namespace_sandbox.cc
index 23796446f3044e88a6ddcb5d6e38fb41156e8456..63388616f471746ae8afd998e8bd9a63bd6380a9 100644
--- a/sandbox/linux/services/namespace_sandbox.cc
+++ b/sandbox/linux/services/namespace_sandbox.cc
@@ -77,7 +77,7 @@ void TerminationSignalHandler(int sig) {
_exit(g_signal_exit_codes[sig_idx]);
}
- _exit(NamespaceSandbox::kDefaultExitCode);
+ _exit(NamespaceSandbox::SignalExitCode(sig));
}
#endif // !defined(OS_NACL_NONSFI)
@@ -157,7 +157,7 @@ void NamespaceSandbox::InstallDefaultTerminationSignalHandlers() {
};
for (const int sig : kDefaultTermSignals) {
- InstallTerminationSignalHandler(sig, kDefaultExitCode);
+ InstallTerminationSignalHandler(sig, SignalExitCode(sig));
}
}

Powered by Google App Engine
This is Rietveld 408576698