diff options
author | rwatson <rwatson@FreeBSD.org> | 2005-09-12 10:16:18 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2005-09-12 10:16:18 +0000 |
commit | 1481446aae3f57f2a3c6facaaf98f0c864b1416d (patch) | |
tree | f82a889670fb21da1ddade25b21789bf875ab183 /lib/libc/stdlib/malloc.3 | |
parent | 919d519cbbf1563e57778c33e1f384f2a5e7d871 (diff) | |
download | FreeBSD-src-1481446aae3f57f2a3c6facaaf98f0c864b1416d.zip FreeBSD-src-1481446aae3f57f2a3c6facaaf98f0c864b1416d.tar.gz |
Only poll the fifo for read events if the fifo is attached to a readable
file descriptor. Otherwise, the read end of a fifo might return that it
is writable (which it isn't).
Only poll the fifo for write events if the fifo attached to a writable
file descriptor. Otherwise, the write end of a fifo might return that
it is readable (which it isn't).
In the event that a file is FREAD|FWRITE (which is allowed by POSIX, but
has undefined behavior), we poll for both.
MFC after: 3 days
Diffstat (limited to 'lib/libc/stdlib/malloc.3')
0 files changed, 0 insertions, 0 deletions