* 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 <https://www.gnu.org/licenses/>.
*/
#include <signal.h>
#include "cleanup.h"
#include "log.h"
+#include "onak-conf.h"
static bool should_cleanup = false;
*/
void catchsignals(void)
{
+ if (config.use_keyd) {
+ return;
+ }
+
logthing(LOGTHING_INFO, "Catching signals");
signal(SIGALRM, &sig_cleanup);