bug-hurd
[Top][All Lists]
Advanced

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

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


From: Pino Toscano
Subject: 0-bytes read() blocks for standard fd's while it shouldn't
Date: Mon, 26 Dec 2011 01:25:02 +0100
User-agent: KMail/1.13.7 (Linux/3.1.0-1-amd64; KDE/4.6.5; x86_64; ; )

Hi,

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.

-- 
Pino Toscano

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

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