Updated sigterm handling

This commit is contained in:
lorenz.stechauner committed 2020-12-11 23:51:23 +01:00
1 parent bce6f64c6e
commit e71786716e
1 file changed
+5 -1
+5 -1
View File
@@ -135,7 +135,11 @@ void terminate() {
}
}
fprintf(stderr, "Goodbye\n");
signal(SIGINT, SIG_IGN);
signal(SIGTERM, SIG_IGN);
sleep(1);
fprintf(stderr, "\nGoodbye\n");
exit(0);
}