mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-08 20:28:30 +00:00
Polyfill SA_RESETHAND on MacOS ARM64
This change solves the XNU crash loop mystery. Apple's documentation claims to support this feature, but they only define the constant in their header files. The kernel acknowledges thi SA_RESETHAND bit, by clearing it from the sa_flags state, returns zero, and does nothing.
This commit is contained in:
parent
952b9009e8
commit
793393a341
3 changed files with 23 additions and 2 deletions
|
@ -394,8 +394,6 @@ relegated void __oncrash(int sig, struct siginfo *si, void *arg) {
|
|||
BLOCK_CANCELATION;
|
||||
SpinLock(&lock);
|
||||
__oncrash_impl(sig, si, arg);
|
||||
if (sig != SIGQUIT && sig != SIGTRAP)
|
||||
_exit(1);
|
||||
SpinUnlock(&lock);
|
||||
ALLOW_CANCELATION;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue