From 7ffb49ffb8b34511a24ceca34e39fc7438445180 Mon Sep 17 00:00:00 2001 From: wessels <> Date: Thu, 30 Oct 1997 00:52:51 +0000 Subject: [PATCH] We we issue a store_client callback from storeUnregister() then use -1 as the 'size' to inidcate an unexpected termination. --- src/store.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; -- 2.47.3