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

--- Comment #4 from structurechart at yahoo dot com ---
(In reply to Djalal Harouni from comment #3)
> 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!

Djalal I think you misread my question.  My question is why eventfd_write(x, 0)
doesn't work -- i.e. epoll_wait() doesn't return, but event_fd_write(x, y),
where y isn't zero, works.

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