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
sic.c
View File

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