select.2: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2016-02-03 14:16:00 +01:00
parent 455f50e98b
commit 887f19e8a1
1 changed files with 2 additions and 0 deletions

View File

@ -599,10 +599,12 @@ main(void)
int retval;
/* Watch stdin (fd 0) to see when it has input. */
FD_ZERO(&rfds);
FD_SET(0, &rfds);
/* Wait up to five seconds. */
tv.tv_sec = 5;
tv.tv_usec = 0;