From 63c7b082aa8fd8f7323e25fa1337cc8de5c2d8d6 Mon Sep 17 00:00:00 2001 From: fatbob313 Date: Thu, 20 Jan 2011 08:25:34 +0000 Subject: [PATCH] Patch from tilman2: Close PID-file --- src/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.c b/src/main.c index 1b92f50..8a0573a 100644 --- a/src/main.c +++ b/src/main.c @@ -66,6 +66,7 @@ void lockfile(const char *pidfile) Log_fatal("Cannot open PID-file %s for writing", pidfile); snprintf(str,16,"%d\n", getpid()); write(lfp, str, strlen(str)); /* record pid to lockfile */ + close(lfp); Log_info("PID-file: %s", pidfile); } -- 2.30.2