|
|
@@ -951,7 +951,7 @@ static unsigned int vsock_poll(struct file *file, struct socket *sock,
|
|
|
* POLLOUT|POLLWRNORM when peer is closed and nothing to read,
|
|
|
* but local send is not shutdown.
|
|
|
*/
|
|
|
- if (sk->sk_state == TCP_CLOSE) {
|
|
|
+ if (sk->sk_state == TCP_CLOSE || sk->sk_state == TCP_CLOSING) {
|
|
|
if (!(sk->sk_shutdown & SEND_SHUTDOWN))
|
|
|
mask |= POLLOUT | POLLWRNORM;
|
|
|
|