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/web/statuspage.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source3/web/statuspage.c') diff --git a/source3/web/statuspage.c b/source3/web/statuspage.c index d04554901c..d257970643 100644 --- a/source3/web/statuspage.c +++ b/source3/web/statuspage.c @@ -23,6 +23,7 @@ #include "locking/proto.h" #include "librpc/gen_ndr/open_files.h" #include "lib/conn_tdb.h" +#include "../lib/util/pidfile.h" #define _(x) lang_msg_rotate(talloc_tos(),x) @@ -253,7 +254,7 @@ void status_page(void) TALLOC_CTX *ctx = talloc_stackframe(); const char form_name[] = "status"; - smbd_pid = pid_to_procid(pidfile_pid_s3("smbd")); + smbd_pid = pid_to_procid(pidfile_pid(lp_piddir(), "smbd")); if (!verify_xsrf_token(form_name)) { goto output_page; -- cgit