From: Jonathan McDowell Date: Mon, 19 Jun 2006 21:41:10 +0000 (+0000) Subject: Make failure to load backend fatal. X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/commitdiff_plain/bf52d4344cd29ab86c1d5981d2ea4d1717eb2f84?hp=6ae0820e7f668938027464ba94fca7702586f95b Make failure to load backend fatal. If we can't load a dynamic backend, there's no point continuing at present. So exit. --- diff --git a/keydb_dynamic.c b/keydb_dynamic.c index f12889c..68ee449 100644 --- a/keydb_dynamic.c +++ b/keydb_dynamic.c @@ -66,12 +66,12 @@ bool load_backend(void) handle = dlopen(soname, RTLD_LAZY); if (handle == NULL) { - logthing(LOGTHING_ERROR, + logthing(LOGTHING_CRITICAL, "Failed to open handle to library '%s': %s", soname, dlerror()); free(soname); soname = NULL; - return false; + exit(EXIT_FAILURE); } free(soname); soname = NULL;