fix sigaction code for macos

This commit is contained in:
Enno Rehling 2018-03-16 16:21:33 +01:00
parent ac8ae18588
commit fa1056a696
1 changed files with 1 additions and 1 deletions

View File

@ -280,7 +280,7 @@ static int setup_signal_handler(void)
{
struct sigaction act;
act.sa_flags = SA_ONESHOT | SA_SIGINFO;
act.sa_flags = SA_RESETHAND | SA_SIGINFO;
act.sa_sigaction = report_segfault;
sigfillset(&act.sa_mask);
return sigaction(SIGSEGV, &act, NULL);