summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--auth/auth.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/auth/auth.c b/auth/auth.c
index ec738ce2..ba02b963 100644
--- a/auth/auth.c
+++ b/auth/auth.c
@@ -342,7 +342,11 @@ S_auth_user_authenticate (struct authhandle *userauth,
/* We were interrupted; remove our record. */
{
hurd_ihash_locp_remove (&pending_users, u.locp);
- err = EINTR;
+
+ /* Was it a normal interruption or did RENDEZVOUS die? */
+ mach_port_type_t type;
+ mach_port_type (mach_task_self (), rendezvous, &type);
+ err = type & MACH_PORT_TYPE_DEAD_NAME ? EINVAL : EINTR;
}
mutex_unlock (&pending_lock);
@@ -403,7 +407,11 @@ S_auth_server_authenticate (struct authhandle *serverauth,
/* We were interrupted; remove our record. */
{
hurd_ihash_locp_remove (&pending_servers, s.locp);
- err = EINTR;
+
+ /* Was it a normal interruption or did RENDEZVOUS die? */
+ mach_port_type_t type;
+ mach_port_type (mach_task_self (), rendezvous, &type);
+ err = type & MACH_PORT_TYPE_DEAD_NAME ? EINVAL : EINTR;
}
else
{