From 19d3779274314bb4ce76e3afaa21cf37de7b2b98 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 24 Jan 2011 08:47:38 +0100 Subject: Revert "s3:events: Call all ready fd event handlers on each iteration of the main loop" This reverts commit 455fccf86b6544cd17a2571c63a88f8aebff3f74. I'll add a more generic fix for this problem. metze --- source3/nmbd/nmbd_packets.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/nmbd') diff --git a/source3/nmbd/nmbd_packets.c b/source3/nmbd/nmbd_packets.c index 73ee141104..48d10cc26d 100644 --- a/source3/nmbd/nmbd_packets.c +++ b/source3/nmbd/nmbd_packets.c @@ -1857,7 +1857,7 @@ bool listen_for_packets(bool run_election) fd_set r_fds; fd_set w_fds; - int selrtn = 0; + int selrtn; struct timeval timeout; #ifndef SYNC_DNS int dns_fd; @@ -1884,7 +1884,7 @@ bool listen_for_packets(bool run_election) #endif /* Process a signal and timer events now... */ - if (run_events(nmbd_event_context(), &selrtn, NULL, NULL)) { + if (run_events(nmbd_event_context(), 0, NULL, NULL)) { return False; } @@ -1903,7 +1903,7 @@ bool listen_for_packets(bool run_election) selrtn = sys_select(maxfd+1,&r_fds,&w_fds,NULL,&timeout); - if (run_events(nmbd_event_context(), &selrtn, &r_fds, &w_fds)) { + if (run_events(nmbd_event_context(), selrtn, &r_fds, &w_fds)) { return False; } -- cgit