Changed termination message

This commit is contained in:
2020-12-12 16:06:04 +01:00
parent 38448401d0
commit b4a4f12e9c

View File

@ -138,8 +138,12 @@ void terminate() {
signal(SIGINT, SIG_IGN);
signal(SIGTERM, SIG_IGN);
sleep(1);
fprintf(stderr, "\nGoodbye\n");
if (wait_num > 0) {
sleep(1);
fprintf(stderr, "\nGoodbye\n");
} else {
fprintf(stderr, "Goodbye\n");
}
exit(0);
}