mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-09 14:50:05 +00:00
hurd: Make _hurd_intr_rpc_mach_msg avoid returning MACH_SEND_INTERRUPTED
When the given options do not include MACH_SEND_INTERRUPT, _hurd_intr_rpc_mach_msg (aka mach_msg) is not supposed to return MACH_SEND_INTERRUPTED. In such a case we thus have to retry sending the message. This was observed to fix various occurrences of spurious "(ipc/send) interrupted" errors when running haskell programs.
This commit is contained in:
parent
2f5524cc53
commit
8f22e36238
@ -143,6 +143,12 @@ _hurd_intr_rpc_mach_msg (mach_msg_header_t *msg,
|
||||
XXX */
|
||||
goto retry_receive;
|
||||
}
|
||||
if (!(option & MACH_SEND_INTERRUPT))
|
||||
{
|
||||
option = user_option;
|
||||
timeout = user_timeout;
|
||||
goto message;
|
||||
}
|
||||
/* FALLTHROUGH */
|
||||
|
||||
/* These are the other codes that mean a pseudo-receive modified
|
||||
|
Loading…
Reference in New Issue
Block a user