fix sigaction code for macos

This commit is contained in:
Enno Rehling 2018-03-16 16:21:33 +01:00
parent ac8ae18588
commit fa1056a696

View file

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