From 900c07988e1918aac35990fe0f4b9c3397222eb5 Mon Sep 17 00:00:00 2001 From: wessels <> Date: Sat, 17 Aug 1996 11:09:00 +0000 Subject: [PATCH] drain redirect requests during shutdown --- src/redirect.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/redirect.cc b/src/redirect.cc index 6b6844d2b4..643525942f 100644 --- a/src/redirect.cc +++ b/src/redirect.cc @@ -1,5 +1,5 @@ /* - * $Id: redirect.cc,v 1.8 1996/08/14 21:38:29 wessels Exp $ + * $Id: redirect.cc,v 1.9 1996/08/17 05:09:00 wessels Exp $ * * DEBUG: section 29 Redirector * AUTHOR: Duane Wessels @@ -381,9 +381,15 @@ void redirectOpenServers() void redirectShutdownServers() { redirector_t *redirect = NULL; + redirectStateData *r = NULL; int k; if (Config.Program.redirect == NULL) return; + if (redirectQueueHead) { + while ((redirect = GetFirstAvailable()) && (r = Dequeue())) + redirectDispatch(redirect, r); + return; + } for (k = 0; k < NRedirectors; k++) { redirect = *(redirect_child_table + k); if (!(redirect->flags & REDIRECT_FLAG_ALIVE)) -- 2.47.3