Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Sep 2005 20:28:56 +0000 (UTC)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/fs/fifofs fifo_vnops.c
Message-ID:  <200509152028.j8FKSusB012921@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
rwatson     2005-09-15 20:28:56 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_6)
    sys/fs/fifofs        fifo_vnops.c 
  Log:
  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)
  
  Revision   Changes    Path
  1.113.2.5  +2 -2      src/sys/fs/fifofs/fifo_vnops.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200509152028.j8FKSusB012921>