feat(signal,dispatcher)!: remove signalfd#794
Conversation
There was a problem hiding this comment.
Pull request overview
This PR removes the Linux-specific signalfd-based signal handling backend so Linux uses the same process-wide signal handler approach as other Unix platforms.
Changes:
- Delete the Linux-only
signalfdimplementation (compio-signal/src/linux.rs). - Remove the Linux
#[cfg_attr(..., path = "linux.rs")]module override socompio-signal::unixis used on Linux too. - Simplify/realign
compio-signaldependencies by removing Linux-only deps and making the shared deps unconditional.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| compio-signal/src/linux.rs | Deletes the Linux signalfd listener implementation. |
| compio-signal/src/lib.rs | Routes Linux to the generic unix backend by removing the Linux path override. |
| compio-signal/Cargo.toml | Removes Linux-only dependencies and promotes shared deps (once_cell, slab, synchrony) to unconditional deps. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Is signal masking no longer a concern for dispatcher? |
|
If we handle the signals process-wide, the signal masks are useless. |
As other platforms all set signal handlers process-wide, we should remove the signalfd impls.
cc: @ortuman
I think we can then remove the special flag
block_signalsin compio-dispatcher?