Bug#526734: libc: poll not working on ipv4 socket
On Sun, May 03, 2009 at 09:04:31AM +0200, Salvo Tomaselli wrote:
> Package: libc6
> Version: 2.9-9
> Severity: normal
> File: libc
>
> The following code:
>
> if (poll(monitor,1,READ_TIMEOUT)==0) {
> r=0;
> } else {
> r = read(fd,buf->buffer,buf->size);
> }
>
> Works as expected (giving up the read after the timeout if there is no data) if
> fd is an ipv6 socket, but does a blocking read if fd is an ipv4 socked.
>
> If required, i can provide the full source code.
>
Yes, please provide a simple testcase showing this behaviour. Without
context, it is difficult to see if the code is correct or not.
--
Aurelien Jarno GPG: 1024D/F1BCDB73
aurelien@aurel32.net http://www.aurel32.net
Reply to: