crash: unmask signals in coredump fork

Fixes the fork just sticking around and not dumping a core.
This commit is contained in:
outfoxxed committed 2026-03-12 04:02:24 -07:00
1 parent 9a9c605250
commit 706d6de7b0
1 file changed
+5
+5
View File
@@ -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);
}