summaryrefslogtreecommitdiff
path: root/source3/nmbd
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/nmbd
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/nmbd')
-rw-r--r--source3/nmbd/nmbd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/nmbd/nmbd.c b/source3/nmbd/nmbd.c
index df12405ada..a28ed7c393 100644
--- a/source3/nmbd/nmbd.c
+++ b/source3/nmbd/nmbd.c
@@ -25,6 +25,7 @@
#include "nmbd/nmbd.h"
#include "serverid.h"
#include "messages.h"
+#include "../lib/util/pidfile.h"
int ClientNMB = -1;
int ClientDGRAM = -1;
@@ -70,7 +71,7 @@ static void terminate(struct messaging_context *msg)
gencache_stabilize();
serverid_deregister(messaging_server_id(msg));
- pidfile_unlink_s3("nmbd");
+ pidfile_unlink(lp_piddir(), "nmbd");
exit(0);
}
@@ -942,7 +943,7 @@ static bool open_sockets(bool isdaemon, int port)
mkdir(lp_piddir(), 0755);
}
- pidfile_create_s3("nmbd");
+ pidfile_create(lp_piddir(), "nmbd");
status = reinit_after_fork(msg, nmbd_event_context(),
false);