From 6ae74f9b7a1ec9170efa53cab74e889eb1697a50 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 31 Jan 2000 22:16:23 +0000 Subject: Graceful socket closing. svn path=/trunk/; revision=2726 --- interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'interface.c') diff --git a/interface.c b/interface.c index 6ddbbbbf..7a485e78 100644 --- a/interface.c +++ b/interface.c @@ -174,7 +174,7 @@ static int get_ifinfo(const char *ifname, ifinfo_t *ifinfo) *sp = '/'; } if (socket_fd >= 0) - close(socket_fd); /* not checking should be safe, mode was "r" */ + SockClose(close(socket_fd)); if (stats_file) fclose(stats_file); /* not checking should be safe, mode was "r" */ return(result); -- cgit v1.2.3