Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about fd monitoring #108

Open
kjonca opened this issue Oct 18, 2023 · 0 comments
Open

Question about fd monitoring #108

kjonca opened this issue Oct 18, 2023 · 0 comments

Comments

@kjonca
Copy link

kjonca commented Oct 18, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant