X-Git-Url: http://the.earth.li/gitweb/?a=blobdiff_plain;f=lookup.c;h=c3b49085f59843443a1f87157e8c4fd8c704909b;hb=4d1212e60c60d000bc289e197fc0dccf98285bb1;hp=d5392d599d318f806b059dd1e6fc043e0bfbed53;hpb=394938c479925750ffe56c28d281945ba4003a14;p=onak.git diff --git a/lookup.c b/lookup.c index d5392d5..c3b4908 100644 --- a/lookup.c +++ b/lookup.c @@ -16,6 +16,8 @@ #include "armor.h" #include "charfuncs.h" #include "cleankey.h" +#include "cleanup.h" +#include "config.h" #include "getcgi.h" #include "keydb.h" #include "keyindex.h" @@ -156,6 +158,7 @@ int main(int argc, char *argv[]) } else { readconfig(NULL); initlogthing("lookup", config.logfile); + catchsignals(); initdb(true); switch (op) { case OP_GET: @@ -209,7 +212,8 @@ int main(int argc, char *argv[]) } if (!mrhkp) { puts("
"); - puts("Produced by onak " VERSION " by Jonathan McDowell"); + puts("Produced by onak " PACKAGE_VERSION + " by Jonathan McDowell"); end_html(); }