diff options
author | Jeremy Allison <jra@samba.org> | 2012-07-19 16:36:18 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2012-07-19 16:36:18 -0700 |
commit | e8dbf2889f0f5c6d213e92cbfd97b6a874aedb03 (patch) | |
tree | 21f7c585011d551de323c74faac8f545d7f90857 /source3/nmbd | |
parent | f58d8feabc4b2c75681af1effeb4fb062cee74bd (diff) | |
download | samba-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.c | 5 |
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); |