git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9bab1d0
)
Only create the pidfile once we're ready to receive requests.
author
Jeremy Allison
<jra@samba.org>
Tue, 17 Sep 2002 20:47:59 +0000
(20:47 +0000)
committer
Jeremy Allison
<jra@samba.org>
Tue, 17 Sep 2002 20:47:59 +0000
(20:47 +0000)
This allows external programs to correctly synchronise with us.
Jeremy.
(This used to be commit
ffb7632d05191342ecfc5f78fbfd7beacfe257ad
)
source3/nsswitch/winbindd.c
patch
|
blob
|
history
diff --git
a/source3/nsswitch/winbindd.c
b/source3/nsswitch/winbindd.c
index 58b0f5943c1e66678dceb80ccedf3b29ff7990d9..a937f06639eabd1abd60b2cc9a2f738229baf126 100644
(file)
--- a/
source3/nsswitch/winbindd.c
+++ b/
source3/nsswitch/winbindd.c
@@
-853,10
+853,8
@@
static void usage(void)
fstrcpy(global_myworkgroup, lp_workgroup());
- if (!interactive)
{
+ if (!interactive)
become_daemon();
- pidfile_create("winbindd");
- }
#if HAVE_SETPGID
/*
@@
-891,6
+889,10
@@
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);