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

Use async-signal instead of signal-hook #42

Merged
merged 1 commit into from
Jun 11, 2023
Merged

Conversation

notgull
Copy link
Member

@notgull notgull commented Apr 30, 2023

Rather than using a locked signal_hook::Signals type, this PR uses the new async-signal crate to wait for the SIGCHLD signal. This implementation will use more optimized implementations of signal waiting on other platforms (such as signalfd on Linux).

Ideally, this will help us avoid needing to block a separate thread with the signal waiting in the future.

cc #7

@notgull notgull requested a review from taiki-e May 7, 2023 15:00
@notgull notgull force-pushed the notgull/async-signal branch from b514644 to 43e78e1 Compare June 11, 2023 15:38
@notgull notgull merged commit d45d6f1 into master Jun 11, 2023
@notgull notgull deleted the notgull/async-signal branch June 11, 2023 18:21
@taiki-e taiki-e mentioned this pull request Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant