From 929efc8affec856b8d980b44e2312e512bf0522e Mon Sep 17 00:00:00 2001 From: Ben Kibbey Date: Sun, 13 Jan 2013 11:30:33 -0500 Subject: [PATCH] Fix unlinking the socket when already running. --- src/pwmd.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/pwmd.c b/src/pwmd.c index fe3da284..b050e8b5 100644 --- a/src/pwmd.c +++ b/src/pwmd.c @@ -2826,8 +2826,11 @@ main (int argc, char *argv[]) log_write ("bind(): %s", pwmd_strerror (gpg_error_from_syserror ())); if (errno == EADDRINUSE) - log_write (_("Either there is another pwmd running or '%s' is a \n" - "stale socket. Please remove it manually."), socketpath); + { + do_unlink = 0; + log_write (_("Either there is another pwmd running or '%s' is a \n" + "stale socket. Please remove it manually."), socketpath); + } goto do_exit; } -- 2.11.4.GIT