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)); |
} |
} |