Pino Toscano, le Mon 26 Dec 2011 01:25:02 +0100, a écrit :
> 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.
That should be term/users.c's trivfs_S_io_read().
Samuel
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.