diff options
author | Stefan Metzmacher <metze@samba.org> | 2009-01-20 04:14:20 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2009-01-22 12:37:29 +0100 |
commit | 048f8dba141c2f9898aad67e09925f03394a946e (patch) | |
tree | d975868b616cfc80d12df0979d21fb08a255c089 /source3/smbd/process.c | |
parent | f9dcd3d2b79e4c1e19ac1c81e3e75370c8716586 (diff) | |
download | samba-048f8dba141c2f9898aad67e09925f03394a946e.tar.gz samba-048f8dba141c2f9898aad67e09925f03394a946e.tar.bz2 samba-048f8dba141c2f9898aad67e09925f03394a946e.zip |
s3: always call run_events() before and after sys_select()
And always setup the fd events.
metze
Diffstat (limited to 'source3/smbd/process.c')
-rw-r--r-- | source3/smbd/process.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/source3/smbd/process.c b/source3/smbd/process.c index 44cacfafdd..7847505f7c 100644 --- a/source3/smbd/process.c +++ b/source3/smbd/process.c @@ -818,13 +818,11 @@ static NTSTATUS smbd_server_connection_loop_once(struct smbd_server_connection * &r_fds, &w_fds, &to, &maxfd); } - if (timeval_is_zero(&to)) { - /* Process a timed event now... */ - if (run_events(smbd_event_context(), 0, NULL, NULL)) { - return NT_STATUS_RETRY; - } + /* Process a signal and timed events now... */ + if (run_events(smbd_event_context(), 0, NULL, NULL)) { + return NT_STATUS_RETRY; } - + { int sav; START_PROFILE(smbd_idle); |