Skip to content

EventFd::defuse doesn't work #2422

Closed
@dreiss

Description

@dreiss

Documentation for eventfd: https://man7.org/linux/man-pages/man2/eventfd.2.html
Linux source code: https://github.com/torvalds/linux/blob/83814698cf48ce3aadc5

Both show that "write" adds the written value to the internal count. It will not reset the count or cause the next read call to block.

I think the only way to implement "defuse" would be as an alias for "read", which probably doesn't make sense and wouldn't even work for semaphore eventfds.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions