From 8dd858e5f893558ccfca09410402e3b7b5897e20 Mon Sep 17 00:00:00 2001 From: Charles Hardin Date: Tue, 11 Aug 2020 13:18:45 -0700 Subject: Correct the signal handler registration bt-agent Integration with systemd showed that the bt-agent was not terminating on a SIGTERM being sent seems evident from the typo on the handler registration for the TERM being assign to the usr1_handler. Signed-off-by: Charles Hardin --- src/bt-agent.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bt-agent.c b/src/bt-agent.c index 95c069c..9e4d0c2 100644 --- a/src/bt-agent.c +++ b/src/bt-agent.c @@ -274,9 +274,9 @@ int main(int argc, char *argv[]) } /* Add SIGTERM/SIGINT/SIGUSR1 handlers */ - g_unix_signal_add (SIGTERM, usr1_signal_handler, NULL); + g_unix_signal_add (SIGTERM, term_signal_handler, NULL); g_unix_signal_add (SIGINT, term_signal_handler, NULL); - g_unix_signal_add (SIGUSR1, term_signal_handler, NULL); + g_unix_signal_add (SIGUSR1, usr1_signal_handler, NULL); g_main_loop_run(mainloop); -- cgit v1.2.1