From fd4344f3c05ef52a12c768f61117a6ca7a525a04 Mon Sep 17 00:00:00 2001 From: leitner Date: Sun, 23 Jan 2005 02:45:42 +0000 Subject: [PATCH] how could this ever have worked? --- CHANGES | 1 + io/io_dontwantread.c | 2 +- io/io_dontwantwrite.c | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index b60ca0c..afa8a8b 100644 --- a/CHANGES +++ b/CHANGES @@ -13,6 +13,7 @@ buffer_getline is now a function, not a macro add iob_write (send io batch through callback, e.g. for SSL) add errmsg_info and errmsg_infosys to write to stdout instead + epoll fix 0.20: add errmsg API diff --git a/io/io_dontwantread.c b/io/io_dontwantread.c index 52cb4a3..0343be4 100644 --- a/io/io_dontwantread.c +++ b/io/io_dontwantread.c @@ -26,7 +26,7 @@ void io_dontwantread(int64 d) { #ifdef HAVE_EPOLL if (io_waitmode==EPOLL) { struct epoll_event x; - x.events=EPOLLIN; + x.events=0; if (e->wantwrite) x.events|=EPOLLOUT; x.data.fd=d; epoll_ctl(io_master,newfd?EPOLL_CTL_DEL:EPOLL_CTL_MOD,d,&x); diff --git a/io/io_dontwantwrite.c b/io/io_dontwantwrite.c index fd5b477..2daac5d 100644 --- a/io/io_dontwantwrite.c +++ b/io/io_dontwantwrite.c @@ -26,7 +26,7 @@ void io_dontwantwrite(int64 d) { #ifdef HAVE_EPOLL if (io_waitmode==EPOLL) { struct epoll_event x; - x.events=EPOLLOUT; + x.events=0; if (e->wantread) x.events|=EPOLLIN; x.data.fd=d; epoll_ctl(io_master,newfd?EPOLL_CTL_DEL:EPOLL_CTL_MOD,d,&x);