git: DragonFly_RELEASE_5_8 kernel - Generate POLLHUP for fully disconnected socket

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Mar 18 16:39:41 PDT 2020


commit bbfa8733f33924e2e16a1bb89509adc3ac24acd9
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/bbfa8733f33924e2e16a1bb89509adc3ac24acd9


-- 
DragonFly BSD source repository



More information about the Commits mailing list