Merge "Fix ScopedSignalHandler" am: 7dbf1a187e am: 1deafe164b am: 9a29d20486

am: 33c6549f73

Change-Id: Ib6cac533bb0b8e42b6508ef72f4561e0d351e8eb
This commit is contained in:
Colin Cross 2017-06-30 07:03:38 +00:00 committed by android-build-merger
commit fca673aa6b
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); });