aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorStefan Hajnoczi <[email protected]>2018-01-26 11:48:25 +0000
committerDavid S. Miller <[email protected]>2018-01-26 16:16:27 +0000
commitba3169fc7548759be986b168d662e0ba64c2fd88 (patch)
tree582b734fdf0dd5098a5cd57021e69e484595328f /net/unix/af_unix.c
parentdccp: don't restart ccid2_hc_tx_rto_expire() if sk in closed state (diff)
downloadkernel-ba3169fc7548759be986b168d662e0ba64c2fd88.tar.gz
kernel-ba3169fc7548759be986b168d662e0ba64c2fd88.zip
VSOCK: set POLLOUT | POLLWRNORM for TCP_CLOSING
select(2) with wfds but no rfds must return when the socket is shut down by the peer. This way userspace notices socket activity and gets -EPIPE from the next write(2). Currently select(2) does not return for virtio-vsock when a SEND+RCV shutdown packet is received. This is because vsock_poll() only sets POLLOUT | POLLWRNORM for TCP_CLOSE, not the TCP_CLOSING state that the socket is in when the shutdown is received. Signed-off-by: Stefan Hajnoczi <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions