X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=demo%2Fboxshell.c;fp=demo%2Fboxshell.c;h=00a11a099d4c2d98d1eba162cd5fd1cdc7a7c479;hb=61754ad6e0733a15c837d3ba1c8255731df99c9e;hp=c8ef22aeae47d70ddf8e0c339361304b3c8a5190;hpb=9ba434044157089e3a9d9342424b463d130fb4c5;p=apps%2Fmadtty.git diff --git a/demo/boxshell.c b/demo/boxshell.c index c8ef22a..00a11a0 100644 --- a/demo/boxshell.c +++ b/demo/boxshell.c @@ -61,6 +61,7 @@ int main(void) int ch; FD_ZERO(&rfds); + FD_SET(0, &rfds); FD_SET(rt->pty, &rfds); if (select(rt->pty + 1, &rfds, NULL, NULL, &tv) > 0) {