Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7dbf1a18 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Fix ScopedSignalHandler"

parents a7032020 eac4ecc3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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); });