mirror of https://github.com/mkerrisk/man-pages
select_tut.2: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
a686506533
commit
aa30354a3b
|
@ -670,7 +670,8 @@ main(int argc, char *argv[])
|
|||
|
||||
if (fd1 > 0 && buf1_avail < BUF_SIZE)
|
||||
FD_SET(fd1, &readfds);
|
||||
/* Note: nfds is updated below, when fd1 is added to exceptfds. */
|
||||
/* Note: nfds is updated below, when fd1 is added to
|
||||
exceptfds. */
|
||||
if (fd2 > 0 && buf2_avail < BUF_SIZE)
|
||||
FD_SET(fd2, &readfds);
|
||||
|
||||
|
|
Loading…
Reference in New Issue