From 5cad25a180284c222c13155d3d305862ebf5e6b2 Mon Sep 17 00:00:00 2001 From: Philipp Schafft Date: Thu, 22 Jun 2023 10:13:37 +0000 Subject: [PATCH] Update: Avoid logging in signal handler See also: #2472 --- src/connection.c | 1 + src/sighandler.c | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/connection.c b/src/connection.c index 518fe04c..811f1c75 100644 --- a/src/connection.c +++ b/src/connection.c @@ -903,6 +903,7 @@ void connection_accept_loop(void) connection_queue(con); } } + ICECAST_LOG_INFO("No longer running. Shutting down..."); /* Give all the other threads notification to shut down */ diff --git a/src/sighandler.c b/src/sighandler.c index dec658a4..e5b648f3 100644 --- a/src/sighandler.c +++ b/src/sighandler.c @@ -62,8 +62,6 @@ void _sig_hup(int signo) void _sig_die(int signo) { - ICECAST_LOG_INFO("Caught signal %d, shutting down...", signo); - /* inform the server to start shutting down */ global.running = ICECAST_HALTING; }