From 68eff4d6a1b1d0d99f0b2d6489f4e8f1e6310115 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 10 Jun 2014 23:09:56 +1000 Subject: [PATCH] Don't unlink the unix sockets to make it easier for processes to determine they are not being listened on --- src/libckpool.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/libckpool.c b/src/libckpool.c index 308c5154..d9efa7b9 100644 --- a/src/libckpool.c +++ b/src/libckpool.c @@ -504,9 +504,6 @@ void close_unix_socket(const int sockd, const char *server_path) ret = close(sockd); if (unlikely(ret < 0)) LOGERR("Failed to close sock %d %s", sockd, server_path); - ret = unlink(server_path); - if (unlikely(ret < 0)) - LOGERR("Failed to unlink %s", server_path); } int _open_unix_server(const char *server_path, const char *file, const char *func, const int line)