-/* $Id: http.c,v 1.28 2007-04-19 16:07:20 adam Exp $
+/* $Id: http.c,v 1.29 2007-04-23 08:15:22 marc Exp $
Copyright (c) 2006-2007, Index Data.
This file is part of Pazpar2.
strncpy(hostname, addr, len);
hostname[len] = '\0';
if (!(he = gethostbyname(hostname)))
- {
yaz_log(YLOG_FATAL, "Unable to resolve '%s'", hostname);
- exit(1);
- }
memcpy(&myaddr.sin_addr.s_addr, he->h_addr_list[0], he->h_length);
port = atoi(pp + 1);
-/* $Id: logic.c,v 1.18 2007-04-22 16:41:42 adam Exp $
+/* $Id: logic.c,v 1.19 2007-04-23 08:15:22 marc Exp $
Copyright (c) 2006-2007, Index Data.
This file is part of Pazpar2.
if (i == SESSION_MAX_TERMLISTS)
{
yaz_log(YLOG_FATAL, "Too many termlists");
- exit(1);
+ return;
}
+
s->termlists[i].name = nmem_strdup(s->nmem, type);
s->termlists[i].termlist = termlist_create(s->nmem, s->expected_maxrecs, 15);
s->num_termlists = i + 1;
yaz_log(YLOG_FATAL,
"Unknown native_syntax in normalize_record from %s",
db->url);
- exit(1);
+ return 0;
}
if (global_parameters.dump_records){
if (!(link = cs_create(tcpip_type, 0, PROTO_Z3950)))
{
yaz_log(YLOG_FATAL|YLOG_ERRNO, "Failed to create comstack");
- exit(1);
+ return -1;
}
if (0 == strlen(global_parameters.zproxy_override)){
-/* $Id: settings.c,v 1.18 2007-04-22 15:07:10 adam Exp $
+/* $Id: settings.c,v 1.19 2007-04-23 08:15:22 marc Exp $
Copyright (c) 2006-2007, Index Data.
This file is part of Pazpar2.
return;
if (!strncmp(set->name, "pz:", 3)) // Probably a typo in config fle
- {
yaz_log(YLOG_FATAL, "Unknown pz: setting '%s'", set->name);
- exit(1);
- }
+
// Create a new dictionary entry
// Grow dictionary if necessary
if (!dictionary->size)