svn commit: samba r5217 - in branches/SAMBA_4_0/source/lib/events: .
tridge at samba.org
tridge at samba.org
Fri Feb 4 02:35:14 GMT 2005
Author: tridge
Date: 2005-02-04 02:35:13 +0000 (Fri, 04 Feb 2005)
New Revision: 5217
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=5217
Log:
avoid epoll_ctl() if the event flags are already set correctly
Modified:
branches/SAMBA_4_0/source/lib/events/events.c
Changeset:
Modified: branches/SAMBA_4_0/source/lib/events/events.c
===================================================================
--- branches/SAMBA_4_0/source/lib/events/events.c 2005-02-04 02:31:04 UTC (rev 5216)
+++ branches/SAMBA_4_0/source/lib/events/events.c 2005-02-04 02:35:13 UTC (rev 5217)
@@ -262,7 +262,10 @@
{
#if WITH_EPOLL
struct event_context *ev;
- if (fde == NULL) return;
+ if (fde == NULL ||
+ fde->flags == flags) {
+ return;
+ }
ev = fde->event_ctx;
if (ev->epoll_fd != -1) {
struct epoll_event event;
More information about the samba-cvs
mailing list