]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
hurd: return EIEIO instead of EIO
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 29 Oct 2018 17:57:13 +0000 (18:57 +0100)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 29 Oct 2018 17:57:13 +0000 (18:57 +0100)
EIO would be understood as hardware failure, while this is software
failure.

* hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Return EIEIO instead of EIO

ChangeLog
hurd/intr-msg.c

index 944d8faaad6147554273deacef83189eb65238d6..53fedc21f91a070053a440502e5b6a85ebb86a16 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -20,7 +20,7 @@
 
        * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
        * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
-       answer to interrupt_operation, return EIO instead of EINTR.
+       answer to interrupt_operation, return EIEIO instead of EINTR.
        * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
        _hurd_intr_rpc_msg_about_to global point to start of controlled
        assembly snippet. Make it check canceled flag.
index 7ace0a16b3ec4db80c4d252bc6628a6e7b55d68b..9ddae627c4bb1c5afd55d2d1be73d37e092143d2 100644 (file)
@@ -323,9 +323,9 @@ _hurd_intr_rpc_mach_msg (mach_msg_header_t *msg,
       /* FALLTHROUGH */
 
     dead:
-      err = EIO;
+      err = EIEIO;
 
-      /* The EIO return indicates cancellation, so clear the flag.  */
+      /* The EIEIO return indicates cancellation, so clear the flag.  */
       ss->cancel = 0;
       break;