projects
/
folly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
613bec4
)
fix callPreviousSignalHandler()
author
Adam Simpkins
<simpkins@fb.com>
Thu, 12 Dec 2013 21:46:01 +0000
(13:46 -0800)
committer
Jordan DeLong
<jdelong@fb.com>
Fri, 20 Dec 2013 21:06:03 +0000
(13:06 -0800)
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
folly/experimental/symbolizer/SignalHandler.cpp
patch
|
blob
|
history
diff --git
a/folly/experimental/symbolizer/SignalHandler.cpp
b/folly/experimental/symbolizer/SignalHandler.cpp
index 5eb014052e8582c6d86b647c9d3bac1c8af866b1..d19cc973ce9823989ad8ddde00cfd6d420e02c77 100644
(file)
--- a/
folly/experimental/symbolizer/SignalHandler.cpp
+++ b/
folly/experimental/symbolizer/SignalHandler.cpp
@@
-110,6
+110,7
@@
void callPreviousSignalHandler(int signum) {
for (auto p = kFatalSignals; p->name; ++p) {
if (p->number == signum) {
sigaction(signum, &p->oldAction, nullptr);
+ raise(signum);
return;
}
}