Skip to content

Question about fd monitoring #108

@kjonca

Description

@kjonca

Assume we have directory and we want.

  1. monitor new files (unix sockets) within it
  2. monitor these sockets

i.e.

Firstly directory is empty, we create inotify on it
then in directory we have new socket and my process want to keep eyes on this socket (receive and send messages) and monitor if new socket is created.
When second socket appears in directory process should be able to react on communication with these sockets and check if another socket will appear.
Normally I would use something like epoll but I am not sure ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions