summaryrefslogtreecommitdiff
path: root/source3/nsswitch
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-06-07 17:49:12 +0000
committerJeremy Allison <jra@samba.org>2002-06-07 17:49:12 +0000
commit29744f4f4c67cbff1ff6963d0f7a203637b1a716 (patch)
tree8185be1bf75f486a16c7ad15b1e20a85d85c8e8a /source3/nsswitch
parentc9910cec56a3736a150c0fcc676143ddabe1fd98 (diff)
downloadsamba-29744f4f4c67cbff1ff6963d0f7a203637b1a716.tar.gz
samba-29744f4f4c67cbff1ff6963d0f7a203637b1a716.tar.bz2
samba-29744f4f4c67cbff1ff6963d0f7a203637b1a716.zip
Merge pidfile fix.
Jeremy. (This used to be commit 2c1e78702423ba17993975eb7f158058cc7f229f)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r--source3/nsswitch/winbindd.c6
1 files changed, 3 insertions, 3 deletions
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
/*