summaryrefslogtreecommitdiff
path: root/source3/web
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2012-07-19 15:41:52 -0700
committerJeremy Allison <jra@samba.org>2012-07-19 15:41:52 -0700
commit2922fdaaf0ab2178a1701141cc2435af33c10dc8 (patch)
tree1b1a3c9dd8eb6151f4c9c640543ca5e4dbebdfdc /source3/web
parent03a6137001c418c254505ddab694e1aefc73985d (diff)
downloadsamba-2922fdaaf0ab2178a1701141cc2435af33c10dc8.tar.gz
samba-2922fdaaf0ab2178a1701141cc2435af33c10dc8.tar.bz2
samba-2922fdaaf0ab2178a1701141cc2435af33c10dc8.zip
Move source4/smbd/pidfile into lib/util in preparation for making it in common.
Diffstat (limited to 'source3/web')
-rw-r--r--source3/web/startstop.c6
-rw-r--r--source3/web/statuspage.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/source3/web/startstop.c b/source3/web/startstop.c
index e23acf8931..ef2871ccd3 100644
--- a/source3/web/startstop.c
+++ b/source3/web/startstop.c
@@ -86,7 +86,7 @@ void start_winbindd(void)
/* stop smbd */
void stop_smbd(void)
{
- pid_t pid = pidfile_pid("smbd");
+ pid_t pid = pidfile_pid_s3("smbd");
if (geteuid() != 0) return;
@@ -98,7 +98,7 @@ void stop_smbd(void)
/* stop nmbd */
void stop_nmbd(void)
{
- pid_t pid = pidfile_pid("nmbd");
+ pid_t pid = pidfile_pid_s3("nmbd");
if (geteuid() != 0) return;
@@ -110,7 +110,7 @@ void stop_nmbd(void)
/* stop winbindd */
void stop_winbindd(void)
{
- pid_t pid = pidfile_pid("winbindd");
+ pid_t pid = pidfile_pid_s3("winbindd");
if (geteuid() != 0) return;
diff --git a/source3/web/statuspage.c b/source3/web/statuspage.c
index 8eac8036d0..d04554901c 100644
--- a/source3/web/statuspage.c
+++ b/source3/web/statuspage.c
@@ -253,7 +253,7 @@ void status_page(void)
TALLOC_CTX *ctx = talloc_stackframe();
const char form_name[] = "status";
- smbd_pid = pid_to_procid(pidfile_pid("smbd"));
+ smbd_pid = pid_to_procid(pidfile_pid_s3("smbd"));
if (!verify_xsrf_token(form_name)) {
goto output_page;