X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=demo%2Fboxshell.c;h=00a11a099d4c2d98d1eba162cd5fd1cdc7a7c479;hb=800cf6341f10d4c927c5ee77a5351b684a431ac1;hp=c8ef22aeae47d70ddf8e0c339361304b3c8a5190;hpb=7a634f01490ab34dcddffdde5b5a3d5dd10f6de5;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) {