git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ffb7632
)
Reverted my earlier change. It was incorrect. We must be protected by
author
Jeremy Allison
<jra@samba.org>
Tue, 17 Sep 2002 20:53:21 +0000
(20:53 +0000)
committer
Jeremy Allison
<jra@samba.org>
Tue, 17 Sep 2002 20:53:21 +0000
(20:53 +0000)
pidfile before doing secrets_init().
Jeremy.
source/nsswitch/winbindd.c
patch
|
blob
|
history
diff --git
a/source/nsswitch/winbindd.c
b/source/nsswitch/winbindd.c
index a937f06639eabd1abd60b2cc9a2f738229baf126..bb4a1b78ec5509aec5fa40e0468b6e6e30c064a1 100644
(file)
--- a/
source/nsswitch/winbindd.c
+++ b/
source/nsswitch/winbindd.c
@@
-853,8
+853,11
@@
static void usage(void)
fstrcpy(global_myworkgroup, lp_workgroup());
- if (!interactive)
+ if (!interactive)
{
become_daemon();
+ pidfile_create("winbindd");
+ }
+
#if HAVE_SETPGID
/*
@@
-889,10
+892,6
@@
static void usage(void)
return 1;
}
- /* Only create the pidfile when we're ready to receive requests. */
- if (!interactive)
- pidfile_create("winbindd");
-
/* Loop waiting for requests */
process_loop(accept_sock);