kernel - Generate POLLHUP for fully disconnected socket
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 18 Mar 2020 23:35:39 +0000 (16:35 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 18 Mar 2020 23:35:39 +0000 (16:35 -0700)
commit7323bef77ebc237f29e365140fac9a28288cc6ec
treeaa3e7a2386bac56b39113670891adfdb1005387d
parent32f84edac5cb81c6a11548407c65a79fc27ead1a
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.
sys/kern/sys_generic.c
sys/kern/uipc_socket.c
sys/sys/event.h