af_unix: do not report POLLOUT on listeners
authorEric Dumazet <edumazet@google.com>
Fri, 23 Oct 2015 17:59:16 +0000 (10:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 25 Oct 2015 13:37:45 +0000 (06:37 -0700)
commit1586a5877db9eee313379738d6581bc7c6ffb5e3
tree67dfe980f1ce3a826883360f51babeabdb73c820
parent742e038330a485350334ee5eb75dce4a9dff87cd
af_unix: do not report POLLOUT on listeners

poll(POLLOUT) on a listener should not report fd is ready for
a write().

This would break some applications using poll() and pfd.events = -1,
as they would not block in poll()

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: Alan Burlison <Alan.Burlison@oracle.com>
Tested-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/unix/af_unix.c