]> git.sommitrealweird.co.uk Git - onak.git/blobdiff - add.c
Relax asserts when cleaning up.
[onak.git] / add.c
diff --git a/add.c b/add.c
index 2d38624d3f43dea1ac8e186b388d05ffe016e255..189444e294fb2d83af8869b3c943504c30fba810 100644 (file)
--- a/add.c
+++ b/add.c
@@ -13,6 +13,7 @@
 
 #include "armor.h"
 #include "cleankey.h"
+#include "cleanup.h"
 #include "charfuncs.h"
 #include "getcgi.h"
 #include "keydb.h"
@@ -70,6 +71,7 @@ int main(int argc, char *argv[])
                        end_html();
                        fclose(stdout);
                        fclose(stderr);
+                       catchsignals();
                        initdb(false);
                        
                        count = cleankeys(keys);
@@ -77,7 +79,6 @@ int main(int argc, char *argv[])
                                        count);
 
                        count = update_keys(&keys);
-                       printf("Got %d new keys.\n", count);
                        logthing(LOGTHING_NOTICE, "Got %d new keys.",
                                count);
                        if (keys != NULL) {