From a525830b6439f08693aace239b192bab8fcfcf42 Mon Sep 17 00:00:00 2001 From: Jordan Bancino Date: Mon, 24 Apr 2023 16:23:50 +0000 Subject: [PATCH] Telodendria now responds correctly to SIGTERM. --- src/Main.c | 2 ++ src/Uia.c | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Main.c b/src/Main.c index 727227b..7d31750 100644 --- a/src/Main.c +++ b/src/Main.c @@ -66,6 +66,7 @@ SignalHandler(int signal) case SIGUSR1: restart = 1; /* Fall through */ + case SIGTERM: case SIGINT: if (!httpServers) { @@ -536,6 +537,7 @@ start: } SIGACTION(SIGINT, &sigAction, NULL); + SIGACTION(SIGTERM, &sigAction, NULL); SIGACTION(SIGPIPE, &sigAction, NULL); SIGACTION(SIGUSR1, &sigAction, NULL); diff --git a/src/Uia.c b/src/Uia.c index 4ca36a5..9213c98 100644 --- a/src/Uia.c +++ b/src/Uia.c @@ -493,8 +493,6 @@ UiaCleanup(MatrixHttpHandlerArgs * args) unsigned long lastAccess; - Log(LOG_DEBUG, "Looking at session %s", session); - if (!ref) { Log(LOG_ERR, "Unable to lock uia %s for inspection.",