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

feat: use signalfd on Linux #271

Merged
merged 3 commits into from
Sep 9, 2024
Merged

Conversation

Berrysoft
Copy link
Member

The implementation is simpler with signal fd. However, it sets the signal mask for only the current thread. On other platforms, it sets the handler for all processes. It is a potential inconsistency. What do you think? @George-Miao

@Berrysoft Berrysoft added enhancement New feature or request package: signal Related to compio-signal labels Jul 1, 2024
@Berrysoft Berrysoft self-assigned this Jul 1, 2024
compio-signal/src/linux.rs Outdated Show resolved Hide resolved
compio-signal/src/linux.rs Outdated Show resolved Hide resolved
@Berrysoft
Copy link
Member Author

@George-Miao what do you think about this PR?

Copy link
Member

@George-Miao George-Miao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Berrysoft Berrysoft merged commit 431a1e1 into compio-rs:master Sep 9, 2024
29 checks passed
@Berrysoft Berrysoft deleted the dev/signalfd branch September 9, 2024 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request package: signal Related to compio-signal
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants