From b9c35fd3860882cc3804a4a9d69bec9b96099c57 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 15 Jan 2004 10:04:39 +0000 Subject: [PATCH] Allow frontend server to stop (for debugging purposes) --- ztest/ztest.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ztest/ztest.c b/ztest/ztest.c index 4795ee6..a92a335 100644 --- a/ztest/ztest.c +++ b/ztest/ztest.c @@ -2,7 +2,7 @@ * Copyright (c) 1995-2003, Index Data. * See the file LICENSE for details. * - * $Id: ztest.c,v 1.59 2003-12-29 14:54:33 adam Exp $ + * $Id: ztest.c,v 1.60 2004-01-15 10:04:39 adam Exp $ */ /* @@ -34,6 +34,13 @@ int ztest_search (void *handle, bend_search_rr *rr) rr->errcode = 23; return 0; } + /* if database is stop, stop this process.. For debugging only. + if (!yaz_matchstr (rr->basenames[0], "stop")) + { + nmem_print_list_l(LOG_LOG); + exit(0); + } + /* Throw Database unavailable if other than Default */ if (yaz_matchstr (rr->basenames[0], "Default")) { rr->errcode = 109; -- 1.7.10.4