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/16524] eventfd_write() doesn't work when 2nd argument is zero


https://sourceware.org/bugzilla/show_bug.cgi?id=16524

Djalal Harouni <tixxdz at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tixxdz at gmail dot com

--- Comment #3 from Djalal Harouni <tixxdz at gmail dot com> ---
Hi,

Just to confirm that this is a non-issue, from eventfd manpage, DESCRIPTION -
read(2):

"*  If the eventfd counter is zero at the time of the call to
    read(2), then the call either blocks until the counter
    becomes nonzero (at which time, the read(2) proceeds as
    described above) or fails with the error EAGAIN if the file
    descriptor has been made nonblocking."

So this is the expected behaviour.

Thanks!

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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