bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 0-bytes read() blocks for standard fd's while it shouldn't


From: Samuel Thibault
Subject: Re: 0-bytes read() blocks for standard fd's while it shouldn't
Date: Tue, 27 Dec 2011 16:57:19 +0100
User-agent: Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30)

Pino Toscano, le Mon 26 Dec 2011 01:25:02 +0100, a écrit :
> while debugging, I discovered a problem a bug in read(): when called 
> with nbyte = 0 for the fd's of stdin/out/err like:
>   ret = read(0, buf, 0);
> it blocks as if it would wait for data, while it should return 0 in 
> absence of errors. That read() correctly returns 0 for an fd a regular 
> file.
> 
> I didn't have much success in locating who is replying to the io_read 
> for those fd's, so for now I'll just report the issue.

I have pushed a fix.

Samuel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]