about summary refs log tree commit diff
path: root/sysdeps/mach/hurd/socket.c
diff options
context:
space:
mode:
authorThomas Bushnell, BSG <thomas@gnu.org>1995-07-21 17:03:01 +0000
committerThomas Bushnell, BSG <thomas@gnu.org>1995-07-21 17:03:01 +0000
commit584de3b9d68612c9c04a7afdda5f86d0b4a2d4ca (patch)
tree9eed5706c5d28474ae21ffeaf699442068804095 /sysdeps/mach/hurd/socket.c
parent620ce2509a8e6b5e90be1b26cd85d37b9c37658f (diff)
downloadglibc-584de3b9d68612c9c04a7afdda5f86d0b4a2d4ca.tar.gz
glibc-584de3b9d68612c9c04a7afdda5f86d0b4a2d4ca.tar.xz
glibc-584de3b9d68612c9c04a7afdda5f86d0b4a2d4ca.zip
*** empty log message ***
Fri Jul 21 12:57:29 1995  Michael I Bushnell  <mib@geech.gnu.ai.mit.edu>

	* sysdeps/mach/hurd/socket.c (socket): Consider MIG_BAD_ID and
 	EOPNOTSUPP as indications that the server has died.
	* sysdeps/mach/hurd/pipe.c (__pipe): Likewise.
	* sysdeps/mach/hurd/socketpair.c (socketpair): Likewise.
Diffstat (limited to 'sysdeps/mach/hurd/socket.c')
-rw-r--r--sysdeps/mach/hurd/socket.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sysdeps/mach/hurd/socket.c b/sysdeps/mach/hurd/socket.c
index b779360780..282c24e36b 100644
--- a/sysdeps/mach/hurd/socket.c
+++ b/sysdeps/mach/hurd/socket.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
+/* Copyright (C) 1992, 1993, 1994, 1995 Free Software Foundation, Inc.
 This file is part of the GNU C Library.
 
 The GNU C Library is free software; you can redistribute it and/or
@@ -40,7 +40,8 @@ DEFUN(socket, (domain, type, protocol),
     return -1;
 
   err = __socket_create (server, type, protocol, &sock);
-  if (err == MACH_SEND_INVALID_DEST || err == MIG_SERVER_DIED)
+  if (err == MACH_SEND_INVALID_DEST || err == MIG_SERVER_DIED
+      || err == MIG_BAD_ID || err == EOPNOTSUPP)
     {
       /* On the first use of the socket server during the operation,
 	 allow for the old server port dying.  */