Merge "Fix ScopedSignalHandler" am: 7dbf1a187e
am: 1deafe164b
am: 9a29d20486
am: 33c6549f73
Change-Id: Ib6cac533bb0b8e42b6508ef72f4561e0d351e8eb
This commit is contained in:
commit
fca673aa6b
|
@ -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); });
|
||||
|
|
Loading…
Reference in New Issue