diff options
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/tcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index 4b0272c92d66..19ea5c0b094b 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c | |||
@@ -365,7 +365,7 @@ unsigned int tcp_poll(struct file *file, struct socket *sock, poll_table *wait) | |||
365 | if (sk->sk_shutdown == SHUTDOWN_MASK || sk->sk_state == TCP_CLOSE) | 365 | if (sk->sk_shutdown == SHUTDOWN_MASK || sk->sk_state == TCP_CLOSE) |
366 | mask |= POLLHUP; | 366 | mask |= POLLHUP; |
367 | if (sk->sk_shutdown & RCV_SHUTDOWN) | 367 | if (sk->sk_shutdown & RCV_SHUTDOWN) |
368 | mask |= POLLIN | POLLRDNORM; | 368 | mask |= POLLIN | POLLRDNORM | POLLRDHUP; |
369 | 369 | ||
370 | /* Connected? */ | 370 | /* Connected? */ |
371 | if ((1 << sk->sk_state) & ~(TCPF_SYN_SENT | TCPF_SYN_RECV)) { | 371 | if ((1 << sk->sk_state) & ~(TCPF_SYN_SENT | TCPF_SYN_RECV)) { |