projects
/
onak.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
First cut at cleanup infrastructure.
[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 "armor.h"
#include "cleankey.h"
+#include "cleanup.h"
#include "charfuncs.h"
#include "getcgi.h"
#include "keydb.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);
end_html();
fclose(stdout);
fclose(stderr);
+ catchsignals();
initdb(false);
count = cleankeys(keys);
initdb(false);
count = cleankeys(keys);
@@
-77,7
+79,6
@@
int main(int argc, char *argv[])
count);
count = update_keys(&keys);
count);
count = update_keys(&keys);
- printf("Got %d new keys.\n", count);
logthing(LOGTHING_NOTICE, "Got %d new keys.",
count);
if (keys != NULL) {
logthing(LOGTHING_NOTICE, "Got %d new keys.",
count);
if (keys != NULL) {