forked from github/server
fix sigaction code for macos
This commit is contained in:
parent
ac8ae18588
commit
fa1056a696
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue