diff options
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/server.c | 3 | ||||
-rw-r--r-- | source3/smbd/server_exit.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c index ee1eafb0dc..63edf0020a 100644 --- a/source3/smbd/server.c +++ b/source3/smbd/server.c @@ -43,6 +43,7 @@ #include "lib/param/param.h" #include "lib/background.h" #include "lib/conn_tdb.h" +#include "../lib/util/pidfile.h" struct smbd_open_socket; struct smbd_child_pid; @@ -1285,7 +1286,7 @@ extern void build_options(bool screen); mkdir(lp_piddir(), 0755); if (is_daemon) - pidfile_create_s3("smbd"); + pidfile_create(lp_piddir(), "smbd"); status = reinit_after_fork(msg_ctx, ev_ctx, diff --git a/source3/smbd/server_exit.c b/source3/smbd/server_exit.c index ab64b9c8a9..517d4c27da 100644 --- a/source3/smbd/server_exit.c +++ b/source3/smbd/server_exit.c @@ -44,6 +44,7 @@ #include "printing.h" #include "serverid.h" #include "messages.h" +#include "../lib/util/pidfile.h" static struct files_struct *log_writeable_file_fn( struct files_struct *fsp, void *private_data) @@ -216,7 +217,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_s3("smbd"); + pidfile_unlink(lp_piddir(), "smbd"); } gencache_stabilize(); } |