-
Notifications
You must be signed in to change notification settings - Fork 36
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
Use kqueue EVFILT_SIGNAL
to support signals on BSD
#116
Comments
I guess for this to work,
Or technically it's possible to |
I think an option would definitely be to handle signal handling in a way more tightly coupled to the internal Event sources provided in calloop are privileged, in that they can directly tap into the |
Good point. This needn't result in any change to the public API (other than making the signal support available on BSD/macOS). It could be useful to have a public API for other kqueue filter types (seems handy for crate consumers targetting kqueue OSes). Probably the awkward thing here is that subscribing to an |
|
The fact that signals are only supported on Linux is currently one of the issues using Smithay on BSDs. It looks like it should be possible to implement this with kqueue instead of signalfd, though I'm not currently familiar with kqueue.
The text was updated successfully, but these errors were encountered: