]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
add commCancelRWHandler()
authorwessels <>
Thu, 7 Nov 1996 05:14:32 +0000 (05:14 +0000)
committerwessels <>
Thu, 7 Nov 1996 05:14:32 +0000 (05:14 +0000)
src/comm.cc

index 840b4fdcb613da25172ddff7a86a6018ad8b17bb..0e7df9e807c53a0c6df5d5e1aae3ec6b894967f3 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: comm.cc,v 1.97 1996/11/05 20:43:51 wessels Exp $
+ * $Id: comm.cc,v 1.98 1996/11/06 22:14:32 wessels Exp $
  *
  * DEBUG: section 5     Socket Functions
  * AUTHOR: Harvest Derived
@@ -155,6 +155,17 @@ static void commSetTcpRcvbuf _PARAMS((int, int));
 static int *fd_lifetime = NULL;
 static struct timeval zero_tv;
 
+void
+commCancelRWHandler(int fd)
+{
+    RWStateData *RWState = fd_table[fd].rwstate;
+    if (RWState) {
+        RWState->handler = NULL;
+        RWState->handler_data = NULL;
+    }
+}
+
+
 static void
 RWStateCallbackAndFree(int fd, int code)
 {