Avoid epoll_ctl(..., EPOLL_CTL_DEL, ...) for closed fds.
[srvx.git] / ChangeLog
index a06642188bf2a1d81a56bf4825cd84744a51e9f5..787425d430e7f32396abdbb2b39acbf66e1cda14 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,28 @@
 # arch-tag: automatic-ChangeLog--srvx@srvx.net--2006/srvx--devo--1.3
 #
 
+2007-01-08 04:27:45 GMT        Michael Poole <mdpoole@troilus.org>     patch-81
+
+    Summary:
+      Avoid epoll_ctl(..., EPOLL_CTL_DEL, ...) for closed fds.
+    Revision:
+      srvx--devo--1.3--patch-81
+
+    src/ioset-impl.h (struct io_engine): Add "os_closed" parameter to
+        remove() method.
+    
+    src/ioset.c (ioset_close): Add this to the call.
+    
+    src/ioset-epoll.c (ioset_epoll_remove): Use it to avoid removing the fd
+        from epoll_fd, since that epoll_ctl() call will always fail.
+    
+    src/ioset-select.c (ioset_select_remove): Ignore the new parameter.
+
+    modified files:
+     ChangeLog src/ioset-epoll.c src/ioset-impl.h
+     src/ioset-select.c src/ioset.c
+
+
 2007-01-08 04:22:20 GMT        Michael Poole <mdpoole@troilus.org>     patch-80
 
     Summary: