svn commit: samba r5129 - in branches/SAMBA_4_0/source/lib: .
tridge at samba.org
tridge at samba.org
Mon Jan 31 09:53:22 GMT 2005
Author: tridge
Date: 2005-01-31 09:53:21 +0000 (Mon, 31 Jan 2005)
New Revision: 5129
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=5129
Log:
make sure we don't spin chewing CPU time due to my last change
Modified:
branches/SAMBA_4_0/source/lib/events.c
Changeset:
Modified: branches/SAMBA_4_0/source/lib/events.c
===================================================================
--- branches/SAMBA_4_0/source/lib/events.c 2005-01-31 09:27:53 UTC (rev 5128)
+++ branches/SAMBA_4_0/source/lib/events.c 2005-01-31 09:53:21 UTC (rev 5129)
@@ -290,7 +290,11 @@
* sys_select() with something in the events
* structure - for now just use select()
*/
- selrtn = select(ev->maxfd+1, &r_fds, &w_fds, NULL, &tval);
+ if (timeval_is_zero(&tval)) {
+ selrtn = select(ev->maxfd+1, &r_fds, &w_fds, NULL, NULL);
+ } else {
+ selrtn = select(ev->maxfd+1, &r_fds, &w_fds, NULL, &tval);
+ }
t = timeval_current();
More information about the samba-cvs
mailing list