From f260b45d646ae69602f63c1f6a002384b4828a1c Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 24 May 2007 14:47:24 +0000 Subject: r23117: Factor out local messaging. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This removes message_block / message_unblock. I've talked to Jeremy and Günther, giving them my reasons why I believe they have no effect. Neither could come up with a counter-argument, so they go :-) (This used to be commit a925e0991ffbaea4a533bab3a5d61e5d367d46c8) --- source3/nsswitch/winbindd_dual.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'source3/nsswitch/winbindd_dual.c') diff --git a/source3/nsswitch/winbindd_dual.c b/source3/nsswitch/winbindd_dual.c index 2e8ad154db..c65499f606 100644 --- a/source3/nsswitch/winbindd_dual.c +++ b/source3/nsswitch/winbindd_dual.c @@ -839,15 +839,10 @@ static BOOL fork_domain_child(struct winbindd_child *child) /* Stop zombies */ CatchChild(); - /* Ensure we don't process messages whilst we're - changing the disposition for the child. */ - message_block(); - child->pid = sys_fork(); if (child->pid == -1) { DEBUG(0, ("Could not fork: %s\n", strerror(errno))); - message_unblock(); return False; } @@ -860,8 +855,6 @@ static BOOL fork_domain_child(struct winbindd_child *child) child->event.flags = 0; child->requests = NULL; add_fd_event(&child->event); - /* We're ok with online/offline messages now. */ - message_unblock(); return True; } @@ -895,9 +888,6 @@ static BOOL fork_domain_child(struct winbindd_child *child) messaging_deregister(winbind_messaging_context(), MSG_WINBIND_ONLINESTATUS, NULL); - /* The child is ok with online/offline messages now. */ - message_unblock(); - /* Handle online/offline messages. */ messaging_register(winbind_messaging_context(), NULL, MSG_WINBIND_OFFLINE, child_msg_offline); -- cgit