Skip to content
Snippets Groups Projects
Commit 07f7f6bd authored by rswindell's avatar rswindell
Browse files

Attempt to fix high CPU utilization if controlling tty goes away.

parent 14c6d5e8
No related branches found
No related tags found
No related merge requests found
......@@ -1600,7 +1600,7 @@ int main(int argc, char** argv)
else /* interactive */
#endif
while(!terminated) {
if(!kbhit()) {
if(!isatty(fileno(stdin)) || !kbhit()) {
YIELD();
continue;
}
......
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