Merge "Fix ScopedSignalHandler"

am: 7dbf1a187e

Change-Id: Ic85a20682ecaa109d03827a694efd751e0fb9418
This commit is contained in:
Colin Cross 2017-06-30 06:50:38 +00:00 committed by android-build-merger
commit 1deafe164b

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); });