X-Git-Url: https://the.earth.li/gitweb/?a=blobdiff_plain;f=cleanup.c;h=95f74ddc3a867c8c63ba28b4a54a4ab8cc29e414;hb=HEAD;hp=124c0025a98f3e534dd1dcb4c3718116eca74c17;hpb=0c120d1895d25b59abe338862189be1b87447569;p=onak.git diff --git a/cleanup.c b/cleanup.c index 124c002..95f74dd 100644 --- a/cleanup.c +++ b/cleanup.c @@ -13,8 +13,7 @@ * 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 @@ -22,6 +21,7 @@ #include "cleanup.h" #include "log.h" +#include "onak-conf.h" static bool should_cleanup = false; @@ -73,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);