Summary:
If a previous handler was found, the code was missing the step of
actually re-raising the handler after restoring the old handler.
Test Plan: Verified that our service actually exits after receiving SIGTERM.
Reviewed By: tudorb@fb.com
FB internal diff:
D1096360
for (auto p = kFatalSignals; p->name; ++p) {
if (p->number == signum) {
sigaction(signum, &p->oldAction, nullptr);
for (auto p = kFatalSignals; p->name; ++p) {
if (p->number == signum) {
sigaction(signum, &p->oldAction, nullptr);