diff options
author | Jeremy Allison <jra@samba.org> | 2006-12-12 22:41:42 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:16:27 -0500 |
commit | ebb8161e1c1d39b01ca4b6128edb87a0123f3093 (patch) | |
tree | 984da19de7f98f6fd42671116cafca0b499f5e1e /source3/nsswitch/winbindd_dual.c | |
parent | 86a11183f78e2413a25af60db779f5edd23af562 (diff) | |
download | samba-ebb8161e1c1d39b01ca4b6128edb87a0123f3093.tar.gz samba-ebb8161e1c1d39b01ca4b6128edb87a0123f3093.tar.bz2 samba-ebb8161e1c1d39b01ca4b6128edb87a0123f3093.zip |
r20140: Make online/offline detection completely asynchronous.
Now I've done this I might be able to reduce the probe
timeout and reduce the backoff algorithm, going back
to checking every cache time seconds (5 mins by default),
as the parent or forked domain child will never block.
Jeremy.
(This used to be commit d0add5f946cf63ea43067e8e935876b5346d11de)
Diffstat (limited to 'source3/nsswitch/winbindd_dual.c')
-rw-r--r-- | source3/nsswitch/winbindd_dual.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/nsswitch/winbindd_dual.c b/source3/nsswitch/winbindd_dual.c index 70af8333c5..a61b158c24 100644 --- a/source3/nsswitch/winbindd_dual.c +++ b/source3/nsswitch/winbindd_dual.c @@ -769,7 +769,10 @@ static BOOL fork_domain_child(struct winbindd_child *child) } ZERO_STRUCT(state); - state.pid = getpid(); + state.pid = sys_getpid(); + + /* Stop zombies */ + CatchChild(); /* Ensure we don't process messages whilst we're changing the disposition for the child. */ |