From e8dbf2889f0f5c6d213e92cbfd97b6a874aedb03 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 19 Jul 2012 16:36:18 -0700 Subject: Move everything to use the common pidfile functions. The extra code in source3/lib/pidfile.c is no longer needed. --- source3/winbindd/winbindd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source3/winbindd/winbindd.c') diff --git a/source3/winbindd/winbindd.c b/source3/winbindd/winbindd.c index c2ac2e0032..685ef48881 100644 --- a/source3/winbindd/winbindd.c +++ b/source3/winbindd/winbindd.c @@ -36,6 +36,7 @@ #include "serverid.h" #include "auth.h" #include "messages.h" +#include "../lib/util/pidfile.h" #undef DBGC_CLASS #define DBGC_CLASS DBGC_WINBIND @@ -184,7 +185,7 @@ static void terminate(bool is_parent) if (is_parent) { serverid_deregister(procid_self()); - pidfile_unlink_s3("winbindd"); + pidfile_unlink(lp_piddir(), "winbindd"); } exit(0); @@ -1449,7 +1450,7 @@ int main(int argc, char **argv, char **envp) if (!interactive) become_daemon(Fork, no_process_group, log_stdout); - pidfile_create_s3("winbindd"); + pidfile_create(lp_piddir(), "winbindd"); #if HAVE_SETPGID /* -- cgit