Commit 2378b40e authored by Doug Rabson's avatar Doug Rabson Committed by Facebook Github Bot

Add SIGQUIT to the fatal signals list

Summary: Some infrastructure sends `SIGQUIT` to stuck processes and we would like to be able to log stacktraces for these.

Reviewed By: yfeldblum

Differential Revision: D7819980

fbshipit-source-id: d99a1232ca259bd95aed82505751e6591af748ff
parent c0511309
......@@ -100,6 +100,7 @@ struct {
{SIGABRT, "SIGABRT", {}},
{SIGBUS, "SIGBUS", {}},
{SIGTERM, "SIGTERM", {}},
{SIGQUIT, "SIGQUIT", {}},
{0, nullptr, {}},
};
......@@ -241,7 +242,7 @@ const char* sigbus_reason(int si_code) {
case BUS_OBJERR:
return "object-specific hardware error";
// MCEERR_AR and MCEERR_AO: in sigaction(2) but not in headers.
// MCEERR_AR and MCEERR_AO: in sigaction(2) but not in headers.
default:
return nullptr;
......@@ -255,7 +256,7 @@ const char* sigtrap_reason(int si_code) {
case TRAP_TRACE:
return "process trace trap";
// TRAP_BRANCH and TRAP_HWBKPT: in sigaction(2) but not in headers.
// TRAP_BRANCH and TRAP_HWBKPT: in sigaction(2) but not in headers.
default:
return nullptr;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment