From: wessels <> Date: Thu, 7 Nov 1996 05:14:32 +0000 (+0000) Subject: add commCancelRWHandler() X-Git-Tag: SQUID_3_0_PRE1~5515 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81f754fa5727e725fa42b8d539a15cd0c71d157c;p=thirdparty%2Fsquid.git add commCancelRWHandler() --- diff --git a/src/comm.cc b/src/comm.cc index 840b4fdcb6..0e7df9e807 100644 --- a/src/comm.cc +++ b/src/comm.cc @@ -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) {