summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormor <empty>1994-02-07 14:45:17 +0000
committermor <empty>1994-02-07 14:45:17 +0000
commit1b72a0026f18e1bb90ee6660ad0096b79b7c85fc (patch)
tree5466395580b47bf1469c23d184fc6bf6e1bd9c7d
parentfd10e8fb0a55f5f342e06ead3af68601ff0f6897 (diff)
_ICETransSocketUNIXClose was not returning a value
-rw-r--r--xc/lib/xtrans/Xtranssock.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/xc/lib/xtrans/Xtranssock.c b/xc/lib/xtrans/Xtranssock.c
index 2b50d7389..55d402f38 100644
--- a/xc/lib/xtrans/Xtranssock.c
+++ b/xc/lib/xtrans/Xtranssock.c
@@ -1,4 +1,4 @@
-/* $XConsortium: Xtranssock.c,v 1.15 94/02/06 16:03:26 mor Exp $ */
+/* $XConsortium: Xtranssock.c,v 1.16 94/02/06 18:21:19 mor Exp $ */
/* Copyright (c) 1993, 1994 NCR Corporation - Dayton, Ohio, USA
* Copyright 1993, 1994 by the Massachusetts Institute of Technology
@@ -1422,10 +1422,11 @@ XtransConnInfo ciptr;
struct sockaddr_un *sockname = (struct sockaddr_un *) ciptr->addr;
char path[200]; /* > sizeof sun_path +1 */
+ int ret;
PRMSG (2,"TRANS(SocketUNIXClose) (%x,%d)\n", ciptr, ciptr->fd, 0);
- close(ciptr->fd);
+ ret = close(ciptr->fd);
if (ciptr->flags
&& sockname
@@ -1436,6 +1437,8 @@ XtransConnInfo ciptr;
ciptr->addrlen - sizeof (sockname->sun_family));
unlink (path);
}
+
+ return ret;
}
#endif /* UNIXCONN */