diff options
author | David Strauss <david@davidstrauss.net> | 2013-10-21 16:39:13 -0700 |
---|---|---|
committer | David Strauss <david@davidstrauss.net> | 2013-10-21 17:23:01 -0700 |
commit | 9ec9694ce3dbc137735b2992dfa305d0e5948815 (patch) | |
tree | ebc38c0857c7ca0df7501b01bc86b689f42a1cb3 /src/libsystemd-bus/sd-event.c | |
parent | 299c397c127cda34facbe7d089f944a708ec95e9 (diff) |
sd-event: EPOLLONESHOT only disables event reporting after an event. The fd is still registered.
Diffstat (limited to 'src/libsystemd-bus/sd-event.c')
-rw-r--r-- | src/libsystemd-bus/sd-event.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/libsystemd-bus/sd-event.c b/src/libsystemd-bus/sd-event.c index 19fa982ed3..b3a6c5b08a 100644 --- a/src/libsystemd-bus/sd-event.c +++ b/src/libsystemd-bus/sd-event.c @@ -1430,15 +1430,6 @@ static int process_io(sd_event *e, sd_event_source *s, uint32_t events) { s->io.revents = events; - /* - If this is a oneshot event source, then we added it to the - epoll with EPOLLONESHOT, hence we know it's not registered - anymore. We can save a syscall here... - */ - - if (s->enabled == SD_EVENT_ONESHOT) - s->io.registered = false; - return source_set_pending(s, true); } |