Skip to content

Commit

Permalink
Reuse the incoming exception message ID for the reply message.
Browse files Browse the repository at this point in the history
  • Loading branch information
vorporeal committed Feb 23, 2023
1 parent cb51512 commit 6cd4f88
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ handleExceptions(void *const userData)

SentryCrashLOG_DEBUG("Received exception from subprocess. Ignoring message and waiting for another.");
// Send a reply saying "I didn't handle this exception".
replyMessage.header.msgh_id = 0;
replyMessage.header.msgh_id = exceptionMessage.header.msgh_id;
replyMessage.header.msgh_bits = exceptionMessage.header.msgh_bits & MACH_MSGH_BITS_REMOTE_MASK;
replyMessage.header.msgh_remote_port = exceptionMessage.header.msgh_remote_port;
replyMessage.header.msgh_local_port = MACH_PORT_NULL;
Expand Down

0 comments on commit 6cd4f88

Please sign in to comment.