X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2FIOEngine_kevent.c;h=21c81efcf421bb5fe2bace8b519b055813ba8964;hb=8a1a716ef73af7b5288f7b5f8ab1b37be80f1247;hp=1ebb801886d1c1a243fed0a3c9b5d3225185b4e3;hpb=f844b726b55c5508e31579073121c38317ecd968;p=NeonServV5.git diff --git a/src/IOEngine_kevent.c b/src/IOEngine_kevent.c index 1ebb801..21c81ef 100644 --- a/src/IOEngine_kevent.c +++ b/src/IOEngine_kevent.c @@ -59,6 +59,10 @@ static void engine_kevent_remove(struct IODescriptor *iofd) { static void engine_kevent_update(struct IODescriptor *iofd) { if(iofd->type == IOTYPE_TIMER) return; + if(iofd->state == IO_CLOSED) { + engine_epoll_remove(iofd); + return; + } struct kevent changes[2]; int nchanges = 0; int res;