From: wessels <> Date: Thu, 30 Oct 1997 00:52:51 +0000 (+0000) Subject: We we issue a store_client callback from storeUnregister() then use X-Git-Tag: SQUID_3_0_PRE1~4634 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7ffb49ffb8b34511a24ceca34e39fc7438445180;p=thirdparty%2Fsquid.git We we issue a store_client callback from storeUnregister() then use -1 as the 'size' to inidcate an unexpected termination. --- diff --git a/src/store.cc b/src/store.cc index 41f74bbc72..0093a8412c 100644 --- a/src/store.cc +++ b/src/store.cc @@ -1,6 +1,6 @@ /* - * $Id: store.cc,v 1.326 1997/10/29 02:36:36 wessels Exp $ + * $Id: store.cc,v 1.327 1997/10/29 17:52:51 wessels Exp $ * * DEBUG: section 20 Storeage Manager * AUTHOR: Harvest Derived @@ -749,9 +749,10 @@ storeUnregister(StoreEntry * e, void *data) file_close(sc->swapin_fd); } if ((callback = sc->callback)) { + /* callback with ssize = -1 to indicate unexpected termination */ debug(20,1)("WARNING: store_client for %s has a callback\n", e->url); sc->callback = NULL; - callback(sc->callback_data, sc->copy_buf, 0); + callback(sc->callback_data, sc->copy_buf, -1); } cbdataFree(sc); return 1;