Merge "Fix ScopedSignalHandler"

This commit is contained in:
Treehugger Robot 2017-06-30 06:44:40 +00:00 committed by Gerrit Code Review
commit 7dbf1a187e
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ class ScopedSignalHandler {
template <class F>
void install(int signal, F&& f) {
if (signal != -1) MEM_LOG_ALWAYS_FATAL("ScopedSignalHandler already installed");
if (signal_ != -1) MEM_LOG_ALWAYS_FATAL("ScopedSignalHandler already installed");
handler_ = SignalFn(std::allocator_arg, allocator_,
[=](int signal, siginfo_t* si, void* uctx) { f(*this, signal, si, uctx); });