Commit c0564c15 authored by Andreas Gustafsson's avatar Andreas Gustafsson
Browse files

Massive cleanup of error handling. Now errors in creating

the server object are always fatal, and errors that occur when
reconfiguring an existing server are always nonfatal.
parent b03de65d
......@@ -57,10 +57,12 @@ struct ns_server {
#define NS_SERVER_VALID(s) ((s) != NULL && \
(s)->magic == NS_SERVER_MAGIC)
ns_server_create(isc_mem_t *mctx, ns_server_t **serverp);
* Create a server object with default settings.
* This function either succeeds or causes the program to exit
* with a fatal error.
......@@ -239,10 +239,7 @@ setup() {
ns_main_earlyfatal("create_managers() failed: %s",
result = ns_server_create(ns_g_mctx, &ns_g_server);
if (result != ISC_R_SUCCESS)
ns_main_earlyfatal("ns_server_create() failed: %s",
ns_server_create(ns_g_mctx, &ns_g_server);
static void
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment