From 993e809b5afde135edb191e964edf83e578e6827 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B6rn=20Baumbach?= Date: Mon, 2 Jul 2012 15:43:49 +0200 Subject: [PATCH] s3-libpidfile: fix check for running process. Call pidfile_pid() with process name instead of pid file name. pidfile_pid does create the pid file name by itself. Signed-off-by: Michael Adam Autobuild-User(master): Michael Adam Autobuild-Date(master): Mon Jul 2 19:19:21 CEST 2012 on sn-devel-104 --- source3/lib/pidfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/lib/pidfile.c b/source3/lib/pidfile.c index e691e5f3b04..f0c075cba6c 100644 --- a/source3/lib/pidfile.c +++ b/source3/lib/pidfile.c @@ -146,7 +146,7 @@ void pidfile_create(const char *program_name) smb_panic("asprintf failed"); } - pid = pidfile_pid(name); + pid = pidfile_pid(program_name); if (pid != 0) { DEBUG(0,("ERROR: %s is already running. File %s exists and process id %d is running.\n", name, pidFile_name, (int)pid)); -- 2.11.4.GIT