projects
/
NeonServV5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed timeq (free name before executing the callback)
[NeonServV5.git]
/
src
/
IOEngine_epoll.c
diff --git
a/src/IOEngine_epoll.c
b/src/IOEngine_epoll.c
index 19c62272518c29804a26a41221577afba0b2d0eb..e36394960f3af206bf4fa594fc10732e2de324f1 100644
(file)
--- a/
src/IOEngine_epoll.c
+++ b/
src/IOEngine_epoll.c
@@
-55,6
+55,10
@@
static void engine_epoll_remove(struct IODescriptor *iofd) {
static void engine_epoll_update(struct IODescriptor *iofd) {
if(iofd->type == IOTYPE_TIMER) return;
static void engine_epoll_update(struct IODescriptor *iofd) {
if(iofd->type == IOTYPE_TIMER) return;
+ if(iofd->state == IO_CLOSED) {
+ engine_epoll_remove(iofd);
+ return;
+ }
struct epoll_event evt;
int res;
struct epoll_event evt;
int res;