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

Matthew Dillon dillon at crater.dragonflybsd.org
Sun Aug 22 15:34:03 PDT 2010


commit 57b24f4ee66aaaa59b54e9577b93253cf435672f
Author: Matthew Dillon <dillon at 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 at 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





More information about the Commits mailing list