Skip to content

Commit

Permalink
Log signals that trigger end of process
Browse files Browse the repository at this point in the history
Log signals
Remove SIGSEGV which is not registered
  • Loading branch information
nuno-silva authored Jan 26, 2023
1 parent 71c2953 commit ab0a463
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions po/pt.po
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions src/motion.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]) {
Expand All @@ -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;
Expand Down

0 comments on commit ab0a463

Please sign in to comment.