Fix bug #5464. Pointed out by Herb @ Connectathon. In fork_domain_child() we call :
authorJeremy Allison <jra@samba.org>
Wed, 14 May 2008 21:10:39 +0000 (14:10 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 14 May 2008 21:10:39 +0000 (14:10 -0700)
commit8d701a142be2b75dc30ad215bc178af902eb4af9
treebeff2122f6365d19e9adee7ffd0b333b872d83f4
parent15857534b76bc66ad122510100aa224f17250465
Fix bug #5464. Pointed out by Herb @ Connectathon. In fork_domain_child() we call :

CatchChild();

*before* we fork the domain child. This call establishes a signal handler that
eats SIGCLD signals and doesn't call sys_select_signal() as the main daemon
SIGCLD handler should do. This causes the parent to ignore dead children and
time out, instead of calling winbind_child_died() on receipt of the signal. The
correct fix is to move the CatchChild call into the child code after the fork.

Jeremy.
source/winbindd/winbindd_dual.c