applied Troels unbuffer stdin patch, thanks

This commit is contained in:
Anselm R Garbe 2014-12-22 11:34:35 +01:00
parent 6ae3c37e30
commit 7f0141bbe9
1 changed files with 1 additions and 0 deletions

1
sic.c
View File

@ -181,6 +181,7 @@ main(int argc, char *argv[]) {
fflush(srv);
setbuf(stdout, NULL);
setbuf(srv, NULL);
setbuf(stdin, NULL);
for(;;) { /* main loop */
FD_ZERO(&rd);
FD_SET(0, &rd);