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

Process (pid) monitoring #12

Closed
4 tasks done
mitchellh opened this issue Jan 26, 2023 · 0 comments · Fixed by #30
Closed
4 tasks done

Process (pid) monitoring #12

mitchellh opened this issue Jan 26, 2023 · 0 comments · Fixed by #30
Assignees

Comments

@mitchellh
Copy link
Owner

mitchellh commented Jan 26, 2023

Add the ability to monitor for the exit of a process.

  • Epoll: pidfd
  • io_uring: pidfd
  • kqueue: EVFILT_PROC
  • wasi: unsupported
@mitchellh mitchellh self-assigned this Mar 18, 2023
mitchellh added a commit that referenced this issue Mar 18, 2023
This implements process watching (#12) for io_uring and epoll.

To facilitate this, io_uring and epoll now both have a `poll` operation
which only polls for some events and then notifies of readiness rather
than performing any actual work. These are used to enable process
watching.

Process watching itself for these platforms are implemented using pidfd.

kqueue will follow in a separate PR.
mitchellh added a commit that referenced this issue Mar 18, 2023
Fixes #12 

This adds EVFILT_PROC support and an implementation of `Process` for
kqueue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant