From 4e6f5c1f5ac614fab775657d353dafecc6560a0f Mon Sep 17 00:00:00 2001 From: roman Date: Thu, 30 Nov 2023 15:31:45 +0100 Subject: [PATCH] main UPDATE remove redundant unlink on unix sock The unlink is already done by nc_server_destroy. --- src/main.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/main.c b/src/main.c index 951a384c..a615b88d 100644 --- a/src/main.c +++ b/src/main.c @@ -676,11 +676,6 @@ server_destroy(void) /* libnetconf2 cleanup */ nc_server_destroy(); - /* UNIX socket can now be removed */ - if (np2srv.unix_path) { - unlink(np2srv.unix_path); - } - /* monitoring cleanup */ ncm_destroy();