X-Git-Url: http://the.earth.li/gitweb/?a=blobdiff_plain;f=cleanup.c;h=95f74ddc3a867c8c63ba28b4a54a4ab8cc29e414;hb=refs%2Fheads%2Fmain;hp=97d02c548bec9b27fbae1449bb59579930dc0bee;hpb=5e1b22d763640c4d7a09d07920403d8d491b4410;p=onak.git diff --git a/cleanup.c b/cleanup.c index 97d02c5..95f74dd 100644 --- a/cleanup.c +++ b/cleanup.c @@ -13,18 +13,15 @@ * more details. * * You should have received a copy of the GNU General Public License along with - * this program; if not, write to the Free Software Foundation, Inc., 51 - * Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * this program. If not, see . */ #include #include -#include -#include #include "cleanup.h" -#include "keydb.h" #include "log.h" +#include "onak-conf.h" static bool should_cleanup = false; @@ -76,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);