Fix signal handling to ensure screen is cleared before exiting on SIGINT
This commit is contained in:
+1
-1
@@ -17,8 +17,8 @@
|
|||||||
|
|
||||||
void handle_sigint(int sig)
|
void handle_sigint(int sig)
|
||||||
{
|
{
|
||||||
clear();
|
|
||||||
endwin();
|
endwin();
|
||||||
|
clear();
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user