poll.2: The negate-fd-to-ignore technique does not work for file descriptor 0

See https://bugzilla.kernel.org/show_bug.cgi?id=79411

Reported-by: Nadav Har'El <nyh@math.technion.ac.il>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2014-07-03 08:17:14 +02:00
parent 5c4d5f9715
commit e2cfd90e5b
1 changed files with 2 additions and 1 deletions

View File

@ -83,7 +83,8 @@ file descriptor for a single
.BR poll ()
call: simply negate the
.I fd
field.)
field.
Note, however, that this technique can't be used to ignore file descriptor 0.)
The field
.I events