X-Git-Url: http://the.earth.li/gitweb/?a=blobdiff_plain;f=gpgwww.c;h=87fe4ce67d3462a5dd8944ef3c73b76e3165538c;hb=ad30ce51bf609c35cd99a9ca46dd859b17d8164a;hp=cd3e0960f0fd3eda58508a1ac5b16caae7a03877;hpb=2ded7b1e4475beb7a3f132deeeae807861bdc399;p=onak.git diff --git a/gpgwww.c b/gpgwww.c index cd3e096..87fe4ce 100644 --- a/gpgwww.c +++ b/gpgwww.c @@ -13,6 +13,7 @@ #include "armor.h" #include "charfuncs.h" +#include "cleanup.h" #include "getcgi.h" #include "hash.h" #include "keydb.h" @@ -75,7 +76,7 @@ int getkeyspath(uint64_t have, uint64_t want, int count) return 1; } - while (pathlen < count) { + while ((!cleanup()) && (pathlen < count)) { /* * Fill the tree info up. */ @@ -165,6 +166,7 @@ int main(int argc, char *argv[]) readconfig(NULL); initlogthing("gpgwww", config.logfile); + catchsignals(); initdb(true); inithash(); logthing(LOGTHING_NOTICE, "Looking for path from 0x%llX to 0x%llX.",