]> git.sommitrealweird.co.uk Git - onak.git/blobdiff - keydb_keyd.c
Make keyd background itself by default
[onak.git] / keydb_keyd.c
index dcdcb85f3669eeb6919a92de3dedefd7cec5a3cd..35d2dc4cab504d388a5e2d3e7bcd4cd693c6fa93 100644 (file)
@@ -116,6 +116,10 @@ static void keyd_cleanupdb(void)
                logthing(LOGTHING_NOTICE, "Error shutting down socket: %d",
                                errno);
        }
+       if (close(keyd_fd) < 0) {
+               logthing(LOGTHING_NOTICE, "Error closing down socket: %d",
+                               errno);
+       }
        keyd_fd = -1;
 
        return;