From 29744f4f4c67cbff1ff6963d0f7a203637b1a716 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 7 Jun 2002 17:49:12 +0000 Subject: Merge pidfile fix. Jeremy. (This used to be commit 2c1e78702423ba17993975eb7f158058cc7f229f) --- source3/nsswitch/winbindd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/nsswitch') diff --git a/source3/nsswitch/winbindd.c b/source3/nsswitch/winbindd.c index 91215e0ef7..398845bdec 100644 --- a/source3/nsswitch/winbindd.c +++ b/source3/nsswitch/winbindd.c @@ -834,8 +834,6 @@ static void usage(void) exit(1); } - pidfile_create("winbindd"); - /* Setup names. */ if (!*global_myname) { @@ -849,8 +847,10 @@ static void usage(void) fstrcpy(global_myworkgroup, lp_workgroup()); - if (!interactive) + if (!interactive) { become_daemon(); + pidfile_create("winbindd"); + } #if HAVE_SETPGID /* -- cgit