]> git.saurik.com Git - apple/xnu.git/blobdiff - libsyscall/wrappers/terminate_with_reason.c
xnu-3789.70.16.tar.gz
[apple/xnu.git] / libsyscall / wrappers / terminate_with_reason.c
index 05fdb78482b59887d9236fa9fc53671fefb0c994..3bb8a6683cf76a3c06cce268e859fbebd1c9759e 100644 (file)
@@ -71,17 +71,11 @@ static void abort_with_payload_wrapper_internal(uint32_t reason_namespace, uint6
        __abort_with_payload(reason_namespace, reason_code, payload, payload_size,
                        reason_string, reason_flags);
 
-       /* If sending a SIGABRT failed, we try to fall back to SIGKILL */
+       /* If sending a SIGABRT failed, we fall back to SIGKILL */
        terminate_with_payload(getpid(), reason_namespace, reason_code, payload, payload_size,
                        reason_string, reason_flags);
 
-       /* Last resort, let's use SIGTRAP (SIGILL on i386) */
-       sigemptyset(&unmask_signal);
-       sigaddset(&unmask_signal, SIGTRAP);
-       sigaddset(&unmask_signal, SIGILL);
-       sigprocmask(SIG_UNBLOCK, &unmask_signal, NULL);
-
-       __builtin_trap();
+       __builtin_unreachable();
 }
 
 void