From: adrian <> Date: Tue, 15 Oct 2002 06:49:10 +0000 (+0000) Subject: call io completion handlers with COMM_ERR_CLOSING when we're actually X-Git-Tag: SQUID_3_0_PRE1~645 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=504cd889f187d9fb888a0131bb5aab99784da035;p=thirdparty%2Fsquid.git call io completion handlers with COMM_ERR_CLOSING when we're actually comm_close()ing an fd. --- diff --git a/src/comm.cc b/src/comm.cc index 6095a6812c..5756931573 100644 --- a/src/comm.cc +++ b/src/comm.cc @@ -1,6 +1,6 @@ /* - * $Id: comm.cc,v 1.337 2002/10/14 08:16:58 robertc Exp $ + * $Id: comm.cc,v 1.338 2002/10/15 00:49:10 adrian Exp $ * * DEBUG: section 5 Socket Functions * AUTHOR: Harvest Derived @@ -1145,7 +1145,8 @@ _comm_close(int fd, char *file, int line) assert(fd == cio->fd); /* just paranoid */ dlinkDelete(&cio->h_node, &CommCallbackList); dlinkDelete(&cio->fd_node, &(fdc_table[cio->fd].CommCallbackList)); - + /* We're closing! */ + cio->errcode = COMM_ERR_CLOSING; comm_call_io_callback(cio); memPoolFree(comm_callback_pool, cio); }