X-Git-Url: https://the.earth.li/gitweb/?p=onak.git;a=blobdiff_plain;f=cleanup.c;fp=cleanup.c;h=95f74ddc3a867c8c63ba28b4a54a4ab8cc29e414;hp=3fe219fb4c02127a928335a969b1e33745ebe956;hb=7b4a0f5405a70c7990f1022ad31fa5856ceeccff;hpb=74282725064951c7cc35584f6ed792b05dc5a52b diff --git a/cleanup.c b/cleanup.c index 3fe219f..95f74dd 100644 --- a/cleanup.c +++ b/cleanup.c @@ -21,6 +21,7 @@ #include "cleanup.h" #include "log.h" +#include "onak-conf.h" static bool should_cleanup = false; @@ -72,6 +73,10 @@ void sig_cleanup(int signal) */ void catchsignals(void) { + if (config.use_keyd) { + return; + } + logthing(LOGTHING_INFO, "Catching signals"); signal(SIGALRM, &sig_cleanup);