Author: Michael Poole <mdpoole@troilus.org>
[ircu2.10.12-pk.git] / ircd / engine_kqueue.c
index 0ff2d1f54c6c4b5b5e7283f7932f77bb7ce49c5d..577cac01d57cd4785dbbe70a26f00b61fda9daa8 100644 (file)
 /* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <errno.h>
 #include <signal.h>
+#include <sys/types.h>
 #include <sys/event.h>
 #include <sys/socket.h>
 #include <sys/time.h>
-#include <sys/types.h>
 #include <time.h>
 #include <unistd.h>
 
@@ -298,11 +298,6 @@ engine_delete(struct Socket* sock)
   dellist[1].data = 0;
   dellist[1].udata = 0;
 
-  /* make it all go away */
-  if (kevent(kqueue_id, dellist, 2, 0, 0, 0) < 0)
-    log_write(LS_SOCKET, L_WARNING, 0,
-             "Unable to delete kevent items for socket %d", s_fd(sock));
-
   sockList[s_fd(sock)] = 0;
 }