smol-rs / async-signal

Asynchronous signal handling
Apache License 2.0
15 stars 6 forks source link

Use signalfd on Linux #2

Closed notgull closed 1 year ago

notgull commented 1 year ago

Linux supports signalfd, which can be used to wait for signals in epoll without needing to clone several pipes like we do in the current implementation. On Linux, we should use that instead.