Updated sigterm handling

This commit is contained in:
2020-12-11 23:51:05 +01:00
parent bce6f64c6e
commit e71786716e

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);
}