Fix ScopedSignalHandler

I4ae2d82fdfdd58cf8ef1dfb6c401cef4ba9d3e88 broke memunreachable_test
by replacing signal_ with signal.

Test: memunreachable_test
Change-Id: I8148321e3a94530867106708a33b5b63ed867380
This commit is contained in:
Colin Cross 2017-06-29 17:12:01 -07:00
parent 51b4f48280
commit eac4ecc34f

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