crash: unmask signals in coredump fork

Fixes the fork just sticking around and not dumping a core.
This commit is contained in:
outfoxxed 2026-03-12 03:57:14 -07:00
parent 9a9c605250
commit 706d6de7b0
No known key found for this signature in database
GPG key ID: 4C88A185FB89301E

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);
}