From 504cd889f187d9fb888a0131bb5aab99784da035 Mon Sep 17 00:00:00 2001 From: adrian <> Date: Tue, 15 Oct 2002 06:49:10 +0000 Subject: [PATCH] call io completion handlers with COMM_ERR_CLOSING when we're actually comm_close()ing an fd. --- src/comm.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); } -- 2.47.2