From a057e7dcc7912b6440ee15ffb8f1f5823845773e Mon Sep 17 00:00:00 2001 From: "Thomas Bushnell, BSG" Date: Fri, 16 Aug 1996 20:42:32 +0000 Subject: *** empty log message *** --- sysdeps/mach/hurd/socket.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'sysdeps/mach/hurd/socket.c') diff --git a/sysdeps/mach/hurd/socket.c b/sysdeps/mach/hurd/socket.c index 423e8fe8b1..a0d770ad5c 100644 --- a/sysdeps/mach/hurd/socket.c +++ b/sysdeps/mach/hurd/socket.c @@ -51,6 +51,13 @@ DEFUN(socket, (domain, type, protocol), err = __socket_create (server, type, protocol, &sock); } + /* These errors all mean that the server node doesn't support the + socket.defs protocol, which we'll take to mean that the protocol + isn't supported. */ + if (err == MACH_SEND_INVALID_DEST || err == MIG_SERVER_DIED + || err == MIG_BAD_ID || err == EOPNOTSUPP) + err = EPFNOSUPPORT; + if (err) return __hurd_fail (err); -- cgit 1.4.1