From: Adam Dickmeiss Date: Tue, 8 Mar 2005 13:59:08 +0000 (+0000) Subject: Exit GFS if XML parsing fails. X-Git-Tag: YAZ.2.1.0~10 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=681b7be9d32f67cd1d7a970117d5526d348d5bd7;p=yaz-moved-to-github.git Exit GFS if XML parsing fails. --- 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();