diff options
author | Colin Cross <ccross@android.com> | 2017-06-29 17:12:01 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2017-06-29 17:13:35 -0700 |
commit | eac4ecc34f4e440ba8317a2f1819d2d5eac7160a (patch) | |
tree | 3d40d2db6ca2abc8a52ed7397028f42b24083b8a /libmemunreachable | |
parent | 51b4f48280bed76bdc8c1758ff6c77435989a33e (diff) | |
download | core-eac4ecc34f4e440ba8317a2f1819d2d5eac7160a.tar.gz core-eac4ecc34f4e440ba8317a2f1819d2d5eac7160a.tar.bz2 core-eac4ecc34f4e440ba8317a2f1819d2d5eac7160a.zip |
Fix ScopedSignalHandler
I4ae2d82fdfdd58cf8ef1dfb6c401cef4ba9d3e88 broke memunreachable_test
by replacing signal_ with signal.
Test: memunreachable_test
Change-Id: I8148321e3a94530867106708a33b5b63ed867380
Diffstat (limited to 'libmemunreachable')
-rw-r--r-- | libmemunreachable/ScopedSignalHandler.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmemunreachable/ScopedSignalHandler.h b/libmemunreachable/ScopedSignalHandler.h index f62f368fd..ff53fad8f 100644 --- a/libmemunreachable/ScopedSignalHandler.h +++ b/libmemunreachable/ScopedSignalHandler.h @@ -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); }); |