From: Pierre Habouzit Date: Fri, 9 Nov 2007 09:12:43 +0000 (+0100) Subject: fix X-Git-Url: http://git.madism.org/?a=commitdiff_plain;h=61754ad6e0733a15c837d3ba1c8255731df99c9e;p=apps%2Fmadtty.git fix Signed-off-by: Pierre Habouzit --- 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) {