]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Merge fifo_vnops.c:1.118 from HEAD to RELENG_6:
authorrwatson <rwatson@FreeBSD.org>
Thu, 15 Sep 2005 20:28:56 +0000 (20:28 +0000)
committerrwatson <rwatson@FreeBSD.org>
Thu, 15 Sep 2005 20:28:56 +0000 (20:28 +0000)
commitdcebacb956b29f5cb9c7cb05dc0d053fe57d7aca
tree2817b6344533ac78e875baee65c410bec7491b3f
parent8c6b46594b6d1939e58b4ad3f926be91bf929b25
Merge fifo_vnops.c:1.118 from HEAD to RELENG_6:

  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.

Approved by: re (kensmith)
sys/fs/fifofs/fifo_vnops.c