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

Remove the signalfd backend #20

Merged
merged 4 commits into from
Oct 2, 2023
Merged

Remove the signalfd backend #20

merged 4 commits into from
Oct 2, 2023

Conversation

notgull
Copy link
Member

@notgull notgull commented Sep 30, 2023

This backend appears to miss some signals that are raised on other
threads. This might be the cause of smol-rs/async-process#55.

I don't feel like kneading signalfd into a better shape, and it probably
isn't much of an improvement over the pipe strategy anyways. So I've just
removed it.

In addition, this PR also adds tests and removes the libc direct dependency.

These tests make sure the signal handler functions as intended.

Signed-off-by: John Nunley <dev@notgull.net>
This backend appears to miss some signals that are raised on other
threads. This might be the cause of smol-rs/async-process#55.

I don't feel like kneading signalfd into a better shape, and it probably
isn't much of an improvement over the pipe strategy anyways. So I've just
removed it.

Signed-off-by: John Nunley <dev@notgull.net>
RUSTFLAGS: --cfg async_signal_force_pipe_impl
if: >
!contains(matrix.os, 'windows')
# Windows returns 1 regardless of whether or not the signal is intercepted.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this due to the behavior described here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, I believe it is. Though the Windows backend is currently broken for other reasons.

Signed-off-by: John Nunley <dev@notgull.net>

Fix Windows test

Signed-off-by: John Nunley <dev@notgull.net>

Fix invalid YAML

Signed-off-by: John Nunley <dev@notgull.net>

Is tee broken?

Signed-off-by: John Nunley <dev@notgull.net>

Disable Windows in CI
It's still used in signal-hook-registry, but if that crate ever switches
to a libc-free strategy we'll be ready.

Signed-off-by: John Nunley <dev@notgull.net>
@notgull notgull merged commit fabce3c into master Oct 2, 2023
14 checks passed
@notgull notgull deleted the notgull/tests branch October 2, 2023 14:39
@taiki-e taiki-e mentioned this pull request Apr 21, 2024
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.

2 participants