Merge "Fix ScopedSignalHandler" am: 7dbf1a187e

am: 1deafe164b

Change-Id: Ie40e77a28100eddb12a85cc8bcd31f169f317805
This commit is contained in:
Colin Cross 2017-06-30 06:54:38 +00:00 committed by android-build-merger
commit 9a29d20486

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