This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/5508] close does not work on sockets with pending aio


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]