From 681b7be9d32f67cd1d7a970117d5526d348d5bd7 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 8 Mar 2005 13:59:08 +0000 Subject: [PATCH] Exit GFS if XML parsing fails. --- src/statserv.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/statserv.c b/src/statserv.c index f6542c6..105d327 100644 --- a/src/statserv.c +++ b/src/statserv.c @@ -5,7 +5,7 @@ * NT threaded server code by * Chas Woodfield, Fretwell Downing Informatics. * - * $Id: statserv.c,v 1.27 2005-03-08 11:48:09 adam Exp $ + * $Id: statserv.c,v 1.28 2005-03-08 13:59:08 adam Exp $ */ /** @@ -440,8 +440,8 @@ static void xml_config_open() xml_config_doc = xmlParseFile(control_block.xml_config); if (!xml_config_doc) { - yaz_log(YLOG_WARN, "Could not parse %s", control_block.xml_config); - return ; + yaz_log(YLOG_FATAL, "Could not parse %s", control_block.xml_config); + exit(1); } } xml_config_read(); -- 1.7.10.4