aboutsummaryrefslogtreecommitdiff
path: root/ScopedSignalHandler.h
diff options
context:
space:
mode:
Diffstat (limited to 'ScopedSignalHandler.h')
-rw-r--r--ScopedSignalHandler.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ScopedSignalHandler.h b/ScopedSignalHandler.h
index ef4473f..8cae4b6 100644
--- a/ScopedSignalHandler.h
+++ b/ScopedSignalHandler.h
@@ -50,7 +50,7 @@ class ScopedSignalHandler {
}
(*handler_map_)[signal] =
- SignalFn([=](int signal, siginfo_t* si, void* uctx) { f(*this, signal, si, uctx); });
+ SignalFn([=, this](int signal, siginfo_t* si, void* uctx) { f(*this, signal, si, uctx); });
struct sigaction act {};
act.sa_sigaction = [](int signal, siginfo_t* si, void* uctx) {