git: kernel - Generate POLLHUP for fully disconnected socket

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Mar 18 16:37:14 PDT 2020


commit 7323bef77ebc237f29e365140fac9a28288cc6ec
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Wed Mar 18 16:35:39 2020 -0700

    kernel - Generate POLLHUP for fully disconnected socket
    
    * Properly generate POLLHUP for fully disconnected sockets.
    
      However, there is still a possible issue.  We do not set POLLHUP
      for half-closed sockets and it is really unclear whether we should
      or not once read data has been exhausted.

Summary of changes:
 sys/kern/sys_generic.c | 12 ++++++++----
 sys/kern/uipc_socket.c |  4 ++++
 sys/sys/event.h        |  3 ++-
 3 files changed, 14 insertions(+), 5 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/7323bef77ebc237f29e365140fac9a28288cc6ec


-- 
DragonFly BSD source repository



More information about the Commits mailing list