From: Adam Dickmeiss Date: Thu, 15 Jan 2004 10:04:39 +0000 (+0000) Subject: Allow frontend server to stop (for debugging purposes) X-Git-Tag: YAZ.2.0.10~16 X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=commitdiff_plain;h=b9c35fd3860882cc3804a4a9d69bec9b96099c57 Allow frontend server to stop (for debugging purposes) --- 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;