From: Samuel Thibault Date: Mon, 29 Oct 2018 17:57:13 +0000 (+0100) Subject: hurd: return EIEIO instead of EIO X-Git-Tag: glibc-2.29~359 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6e7c449f9bb33943f10fdd8f3e539dceb136177;p=thirdparty%2Fglibc.git hurd: return EIEIO instead of EIO 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 --- diff --git a/ChangeLog b/ChangeLog index 944d8faaad6..53fedc21f91 100644 --- 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. diff --git a/hurd/intr-msg.c b/hurd/intr-msg.c index 7ace0a16b3e..9ddae627c4b 100644 --- a/hurd/intr-msg.c +++ b/hurd/intr-msg.c @@ -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;