RE: Fw: [Bug 106241] New: shutdown(3)/close(3) behaviour is incorrect for sockets in accept(3)
From: David Laight <hidden>
Date: 2015-10-21 10:25:45
From: David Laight <hidden>
Date: 2015-10-21 10:25:45
From: Alan Burlison
Sent: 20 October 2015 19:31
...
The problem with poll() is that it returns immediately when passed a FD that is in the listening state. rather than waiting until there's an incoming connection to handle. As I said, that means you can't use poll() to multiplex between read/write/accept sockets.
That seems to work for me... David