]> git.sommitrealweird.co.uk Git - onak.git/commitdiff
Make failure to load backend fatal.
authorJonathan McDowell <noodles@earth.li>
Mon, 19 Jun 2006 21:41:10 +0000 (21:41 +0000)
committerJonathan McDowell <noodles@earth.li>
Mon, 19 Jun 2006 21:41:10 +0000 (21:41 +0000)
If we can't load a dynamic backend, there's no point continuing at
present. So exit.

keydb_dynamic.c

index f12889c24afc8d37fa3f36236eecfd878d65e626..68ee44956ccf23feac9b16a7faa0c75c74ffff80 100644 (file)
@@ -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;