net: add option to enable error queue packets waking select
[deliverable/linux.git] / net / iucv / af_iucv.c
index a7d11ffe428428f25194702c5728562fd87a8e2b..f0550a38f2954c1bbd3b60609a1b994c12752cf0 100644 (file)
@@ -1461,7 +1461,8 @@ unsigned int iucv_sock_poll(struct file *file, struct socket *sock,
                return iucv_accept_poll(sk);
 
        if (sk->sk_err || !skb_queue_empty(&sk->sk_error_queue))
-               mask |= POLLERR;
+               mask |= POLLERR |
+                       sock_flag(sk, SOCK_SELECT_ERR_QUEUE) ? POLLPRI : 0;
 
        if (sk->sk_shutdown & RCV_SHUTDOWN)
                mask |= POLLRDHUP;
This page took 0.024837 seconds and 5 git commands to generate.