diff options
author | Björn Baumbach <bb@sernet.de> | 2012-07-02 15:43:49 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2012-07-02 19:19:21 +0200 |
commit | 993e809b5afde135edb191e964edf83e578e6827 (patch) | |
tree | 5859065b4c501dca9151b2b184ba3681d2498152 /source3/lib | |
parent | a440df93a647d396ea19d64cba1bb5b0dee42cd0 (diff) | |
download | samba-993e809b5afde135edb191e964edf83e578e6827.tar.gz samba-993e809b5afde135edb191e964edf83e578e6827.tar.bz2 samba-993e809b5afde135edb191e964edf83e578e6827.zip |
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 <obnox@samba.org>
Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Mon Jul 2 19:19:21 CEST 2012 on sn-devel-104
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/pidfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/pidfile.c b/source3/lib/pidfile.c index e691e5f3b0..f0c075cba6 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)); |