This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/5508] close does not work on sockets with pending aio
- From: "cseo at linux dot vnet dot ibm dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 2 Apr 2008 20:42:50 -0000
- Subject: [Bug libc/5508] close does not work on sockets with pending aio
- References: <20071218102652.5508.madcoder@debian.org>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From cseo at linux dot vnet dot ibm dot com 2008-04-02 20:42 -------
I confirmed that the test-case is well formed and reproducing against glibc-cvs.
By checking aio_error() after the sleep() call, we can see that aio_read() is
still EINPROGRESS. And aio_cancel() is indeed returning AIO_NOTCANCELLED.
I tried writing EOF to stdin before the aio_cancel() call but it still returns
AIO_NOTCANCELLED. I also tried LF and the result is the same. So aio_cancel()
can't interrupt aio_read() even after data arrives in stdin.
Is an aio_read() on stdin valid? If so is there a way to terminate the
aio_read() when it is no longer needed? Should there be a way to force an
aio_cancel() on something that will traditionally never finish?
Regards,
Carlos
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |cseo at linux dot vnet dot
| |ibm dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=5508
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.