summaryrefslogtreecommitdiff
path: root/source3/smbd
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/smbd
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/smbd')
-rw-r--r--source3/smbd/server.c2
-rw-r--r--source3/smbd/server_exit.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index f7f1d8c715..ee1eafb0dc 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -1285,7 +1285,7 @@ extern void build_options(bool screen);
mkdir(lp_piddir(), 0755);
if (is_daemon)
- pidfile_create("smbd");
+ pidfile_create_s3("smbd");
status = reinit_after_fork(msg_ctx,
ev_ctx,
diff --git a/source3/smbd/server_exit.c b/source3/smbd/server_exit.c
index 07b8432bff..86a621f551 100644
--- a/source3/smbd/server_exit.c
+++ b/source3/smbd/server_exit.c
@@ -216,7 +216,7 @@ static void exit_server_common(enum server_exit_reason how,
DEBUG(3,("Server exit (%s)\n",
(reason ? reason : "normal exit")));
if (am_parent) {
- pidfile_unlink();
+ pidfile_unlink_s3();
}
gencache_stabilize();
}