From 706d6de7b0236cec2c25556e284b91104a4e834b Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Thu, 12 Mar 2026 03:57:14 -0700 Subject: [PATCH] crash: unmask signals in coredump fork Fixes the fork just sticking around and not dumping a core. --- src/crash/handler.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/crash/handler.cpp b/src/crash/handler.cpp index c875c2e..8f37085 100644 --- a/src/crash/handler.cpp +++ b/src/crash/handler.cpp @@ -81,6 +81,11 @@ void signalHandler( auto coredumpPid = fork(); if (coredumpPid == 0) { + // NOLINTBEGIN (misc-include-cleaner) + sigset_t set; + sigfillset(&set); + sigprocmask(SIG_UNBLOCK, &set, nullptr); + // NOLINTEND raise(sig); _exit(-1); }