public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] hurd: Make _hurd_intr_rpc_mach_msg avoid returning MACH_SEND_INTERRUPTED
@ 2023-11-14 1:06 Samuel Thibault
0 siblings, 0 replies; only message in thread
From: Samuel Thibault @ 2023-11-14 1:06 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=8f22e36238c94e2a89da624e03c224895f9dd691
commit 8f22e36238c94e2a89da624e03c224895f9dd691
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date: Tue Nov 14 02:03:35 2023 +0100
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.
Diff:
---
hurd/intr-msg.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/hurd/intr-msg.c b/hurd/intr-msg.c
index bc1f43d383..98f588f206 100644
--- a/hurd/intr-msg.c
+++ b/hurd/intr-msg.c
@@ -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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-11-14 1:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-14 1:06 [glibc] hurd: Make _hurd_intr_rpc_mach_msg avoid returning MACH_SEND_INTERRUPTED Samuel Thibault
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).