git: kevent: Restore old EV_EOF semantics

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Thu Sep 22 23:32:11 PDT 2011


commit 3bcb6e5e80cb05cecaddd866d4b15b428334b9aa
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Fri Sep 23 14:23:53 2011 +0800

    kevent: Restore old EV_EOF semantics
    
    - EV_EOF should be set when the other side closed the connection, even
      if there are data pending in the read buffer (the old semantics).
    - EV_NODATA is added to indicate there are no more data pending in the
      buffer and EOF is detected (EV_EOF is also set in this situation).
    
    Kernel code now tests EV_NODATA instead of EV_EOF, since EV_NODATA
    delivers the information which was delivered by the EV_EOF before
    this commit.
    
    DragonFly-Bug: http://bugs.dragonflybsd.org/issue1998

Summary of changes:
 sys/dev/misc/cmx/cmx.c          |    2 +-
 sys/dev/misc/kbd/kbd.c          |    3 ++-
 sys/dev/video/bktr/bktr_os.c    |    2 +-
 sys/dev/video/cxm/cxm.c         |    2 +-
 sys/kern/kern_event.c           |    2 +-
 sys/kern/sys_generic.c          |    8 ++++----
 sys/kern/sys_pipe.c             |   14 ++++++++------
 sys/kern/tty.c                  |    2 +-
 sys/kern/tty_pty.c              |    4 ++--
 sys/kern/uipc_socket.c          |   12 +++++++-----
 sys/sys/event.h                 |    1 +
 sys/vfs/devfs/devfs_core.c      |    2 +-
 sys/vfs/fifofs/fifo_vnops.c     |   10 ++++++----
 sys/vfs/gnu/ext2fs/ext2_vnops.c |    6 +++---
 sys/vfs/hammer/hammer_vnops.c   |    6 +++---
 sys/vfs/tmpfs/tmpfs_vnops.c     |    6 +++---
 sys/vfs/ufs/ufs_vnops.c         |    6 +++---
 17 files changed, 48 insertions(+), 40 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/3bcb6e5e80cb05cecaddd866d4b15b428334b9aa


-- 
DragonFly BSD source repository





More information about the Commits mailing list