From: fatbob313 Date: Thu, 20 Jan 2011 08:25:34 +0000 (+0000) Subject: Patch from tilman2: Close PID-file X-Git-Url: http://git.code-monkey.de/?a=commitdiff_plain;h=63c7b082aa8fd8f7323e25fa1337cc8de5c2d8d6;p=umurmur.git Patch from tilman2: Close PID-file --- 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); }