From ea5aa1be68de71f9f02eb3d6f4db726adcafb40a Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 11 Oct 2011 11:45:35 +0200 Subject: [PATCH] server: assume PID is dead on ESRCH Signed-off-by: Jens Axboe --- server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.c b/server.c index 339bb66a..e6c49cc8 100644 --- a/server.c +++ b/server.c @@ -1008,7 +1008,7 @@ static int check_existing_pidfile(const char *pidfile) pid = atoi(buf); if (kill(pid, SIGCONT) < 0) - return 0; + return errno != ESRCH; return 1; } -- 2.25.1