Merge "Fix ScopedSignalHandler"
am: 7dbf1a187e
Change-Id: Ic85a20682ecaa109d03827a694efd751e0fb9418
This commit is contained in:
commit
1deafe164b
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue