unbuffer stdio

This commit is contained in:
Andrew Pamment 2016-08-07 13:02:51 +10:00
parent c6b92d60e7
commit d5312f78cf
2 changed files with 3 additions and 1 deletions

1
bbs.c
View File

@ -241,6 +241,7 @@ char s_getchar() {
}*/
} while (c == '\n');
usertimeout = 10;
return (char)c;
}

1
main.c
View File

@ -556,6 +556,7 @@ void serverssh(int port) {
bbs_pid = forkpty(&fd, NULL, NULL, NULL);
if (bbs_pid == 0) {
setvbuf(stdin,NULL,_IONBF,0);
runbbs_ssh(ip);
exit(0);
}