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