summaryrefslogtreecommitdiff
path: root/source3/utils/smbcontrol.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2012-07-19 16:36:18 -0700
committerJeremy Allison <jra@samba.org>2012-07-19 16:36:18 -0700
commite8dbf2889f0f5c6d213e92cbfd97b6a874aedb03 (patch)
tree21f7c585011d551de323c74faac8f545d7f90857 /source3/utils/smbcontrol.c
parentf58d8feabc4b2c75681af1effeb4fb062cee74bd (diff)
downloadsamba-e8dbf2889f0f5c6d213e92cbfd97b6a874aedb03.tar.gz
samba-e8dbf2889f0f5c6d213e92cbfd97b6a874aedb03.tar.bz2
samba-e8dbf2889f0f5c6d213e92cbfd97b6a874aedb03.zip
Move everything to use the common pidfile functions.
The extra code in source3/lib/pidfile.c is no longer needed.
Diffstat (limited to 'source3/utils/smbcontrol.c')
-rw-r--r--source3/utils/smbcontrol.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/utils/smbcontrol.c b/source3/utils/smbcontrol.c
index dbbd8049de..54c5d62c97 100644
--- a/source3/utils/smbcontrol.c
+++ b/source3/utils/smbcontrol.c
@@ -32,6 +32,7 @@
#include "libsmb/nmblib.h"
#include "messages.h"
#include "util_tdb.h"
+#include "../lib/util/pidfile.h"
#if HAVE_LIBUNWIND_H
#include <libunwind.h>
@@ -1365,7 +1366,7 @@ static struct server_id parse_dest(struct messaging_context *msg,
/* Look up other destinations in pidfile directory */
- if ((pid = pidfile_pid_s3(dest)) != 0) {
+ if ((pid = pidfile_pid(lp_piddir(), dest)) != 0) {
return pid_to_procid(pid);
}