DragonFly BSD
DragonFly commits List (threaded) for 2010-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: kernel - Fix read event on file for select/poll API


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 22 Aug 2010 15:32:48 -0700 (PDT)

commit 57b24f4ee66aaaa59b54e9577b93253cf435672f
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date:   Sun Aug 22 15:30:08 2010 -0700

    kernel - Fix read event on file for select/poll API
    
    * select/poll have always returned an immediate read event on regular
      files, but kqueue is expected to only return a EVFILT_READ event
      when not sitting at the file EOF.
    
    * The kernel adds a NOTE_OLDAPI flag which filter functions can use to
      discern between select/poll and kqueue related knotes.
    
    * Adjust filesystem filter function to always return an immediate
      event for reads via select/poll.
    
    * Fixes guile, which for some reason beyond our ken select()'s for a
      read event on a file.
    
    Reported-by: Johannes Hofmann <johannes.hofmann@gmx.de>

Summary of changes:
 sys/kern/sys_generic.c          |   12 ++++++------
 sys/sys/event.h                 |    4 ++++
 sys/vfs/gnu/ext2fs/ext2_vnops.c |    7 +++++--
 sys/vfs/hammer/hammer_vnops.c   |   11 +++++------
 sys/vfs/ufs/ufs_vnops.c         |    6 +++++-
 5 files changed, 25 insertions(+), 15 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/57b24f4ee66aaaa59b54e9577b93253cf435672f


-- 
DragonFly BSD source repository



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]