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
aurel...@aurel32.net                 http://www.aurel32.net



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to