diff options
author | Jeremy Allison <jra@samba.org> | 2010-12-22 14:52:50 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2010-12-23 01:08:11 +0100 |
commit | 30d29e64cb5e0f1360ff47dd6d074d25fa86e5fd (patch) | |
tree | 3c3d56a56b041ea869c4e750b59641e9f3495059 /source3/smbd | |
parent | 03b8b8e19952c40eb3eb22e16e7fbae4073b7b4b (diff) | |
download | samba-30d29e64cb5e0f1360ff47dd6d074d25fa86e5fd.tar.gz samba-30d29e64cb5e0f1360ff47dd6d074d25fa86e5fd.tar.bz2 samba-30d29e64cb5e0f1360ff47dd6d074d25fa86e5fd.zip |
All calls to event_add_to_select_args() call GetTimeOfDay() and
pass this in as the &now parameter. Push this call inside of
event_add_to_select_args() to the correct point so it doesn't
get called unless needed.
Jeremy.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu Dec 23 01:08:11 CET 2010 on sn-devel-104
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/process.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/source3/smbd/process.c b/source3/smbd/process.c index a1aed80982..150b2dd2cb 100644 --- a/source3/smbd/process.c +++ b/source3/smbd/process.c @@ -979,13 +979,8 @@ static NTSTATUS smbd_server_connection_loop_once(struct smbd_server_connection * * select for longer than it would take to wait for them. */ - { - struct timeval now; - GetTimeOfDay(&now); - - event_add_to_select_args(smbd_event_context(), &now, - &r_fds, &w_fds, &to, &maxfd); - } + event_add_to_select_args(smbd_event_context(), + &r_fds, &w_fds, &to, &maxfd); /* Process a signal and timed events now... */ if (run_events(smbd_event_context(), &selrtn, NULL, NULL)) { |