mirror of https://github.com/mkerrisk/man-pages
select.2: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
455f50e98b
commit
887f19e8a1
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue