]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit485d65b83d418de38f9660305c3a33eaec216874
tree67dfe980f1ce3a826883360f51babeabdb73c820
parent2c5edabba876532b02ba0d84fa976a2c4d3a28d8
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