Skip to content
Snippets Groups Projects
Commit dfd6a1f9 authored by deuce's avatar deuce
Browse files

Catch SIGTSTP, don't try to catch SIGSTOP (Since you can't)

kbhit() will init ther terminal.
parent 69ac8465
No related branches found
No related tags found
No related merge requests found
......@@ -109,7 +109,7 @@ void _termios_setup(void)
atexit(_termios_reset);
/* install the Ctrl-Z handler */
signal(SIGSTOP, _sighandler_stop);
signal(SIGTSTP, _sighandler_stop);
signal(SIGCONT, _sighandler_cont);
}
......@@ -125,6 +125,9 @@ int kbhit(void)
return 0;
}
if(!beensetup)
_termios_setup();
/* set up select() args */
FD_ZERO(&inp);
FD_SET(STDIN_FILENO, &inp);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment