From ab0a463c928748260ce7de9ccc6380f43c16d856 Mon Sep 17 00:00:00 2001 From: Nuno Silva Date: Thu, 26 Jan 2023 05:09:42 +0000 Subject: [PATCH] Log signals that trigger end of process Log signals Remove SIGSEGV which is not registered --- po/pt.po | 5 +++++ src/motion.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/po/pt.po b/po/pt.po index 2c3b6f0b..e43e5f58 100644 --- a/po/pt.po +++ b/po/pt.po @@ -1950,6 +1950,11 @@ msgstr "%d De reinicialização do segmento de movimento" msgid "Threads finished" msgstr "Tópicos concluídos" +#: src/motion.c +#, c-format +msgid "Received signal %d." +msgstr "Sinal %d recebido." + #: src/motion.c src/webu.c msgid "Motion terminating" msgstr "Movimento terminando" diff --git a/src/motion.c b/src/motion.c index 8585b245..2bb022ee 100644 --- a/src/motion.c +++ b/src/motion.c @@ -383,6 +383,8 @@ static void sig_handler(int signo) * movie and end up! */ + MOTION_LOG(NTC, TYPE_ALL, NO_ERRNO, _("Received signal %d."), signo); + if (cnt_list) { i = -1; while (cnt_list[++i]) { @@ -402,8 +404,6 @@ static void sig_handler(int signo) */ finish = 1; break; - case SIGSEGV: - exit(0); case SIGVTALRM: printf("SIGVTALRM went off\n"); break;