From e8dbf2889f0f5c6d213e92cbfd97b6a874aedb03 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 19 Jul 2012 16:36:18 -0700 Subject: Move everything to use the common pidfile functions. The extra code in source3/lib/pidfile.c is no longer needed. --- source3/libsmb/clidgram.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source3/libsmb/clidgram.c') diff --git a/source3/libsmb/clidgram.c b/source3/libsmb/clidgram.c index d9de99eb04..6e3ecb3865 100644 --- a/source3/libsmb/clidgram.c +++ b/source3/libsmb/clidgram.c @@ -26,6 +26,7 @@ #include "libsmb/nmblib.h" #include "messages.h" #include "librpc/gen_ndr/samr.h" +#include "../lib/util/pidfile.h" /* * cli_send_mailslot, send a mailslot for client code ... @@ -327,7 +328,7 @@ struct tevent_req *nbt_getdc_send(TALLOC_CTX *mem_ctx, if (tevent_req_nomem(state->my_mailslot, req)) { return tevent_req_post(req, ev); } - state->nmbd_pid = pidfile_pid_s3("nmbd"); + state->nmbd_pid = pidfile_pid(lp_piddir(), "nmbd"); if (state->nmbd_pid == 0) { DEBUG(3, ("No nmbd found\n")); tevent_req_nterror(req, NT_STATUS_NOT_SUPPORTED); -- cgit