Skip to content

Combing Epoll and Inotify? #1998

Closed
@VorpalBlade

Description

@VorpalBlade

So apparently the crate is transitioning Epoll to a new safer (and better documented!) abstraction. But this has yet to be released. Fine I thought, since I'm starting a new project, I will just use the latest master for now and switch to the next release that contains this.

However, it seems that Inotify (which I also need) has lost AsRawFd, but not gained a replacement to allow it to be used together with Epoll? For my use case I need to epoll a few FDs, one of which is an inotify FD (that monitors a few files). Thus I need a way to combine these. I would prefer to avoid threads for this.

Is there no way to do this currently or am I missing something obvious?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions