Site icon EfmSoft

What does macOS kernel return 0x10004005 (MACH_RCV_INTERRUPTED) mean?

 
Previous Next
MACH_RCV_TOO_LARGE MACH_RCV_PORT_CHANGED

MACH_RCV_INTERRUPTED

Receive cancellation, not message failure

MACH_RCV_INTERRUPTED reports that a software interrupt stopped a waiting receive. It is normally exposed only when MACH_RCV_INTERRUPT is selected; otherwise the mach_msg wrapper may retry the interrupted system call. The code says nothing about the sender or the validity of the receive port. No message was dequeued for this result.

Applications should treat this as a controlled cancellation point. A loop that immediately retries forever defeats the reason for requesting interruptible behavior, while a loop that exits unconditionally can leak server state. Decide whether interruption means shutdown, a deadline check, a state transition, or merely a prompt to recompute the remaining timeout.

Handling guidance

References


Looking for a different code? Search another status or error code.

Exit mobile version