-
Notifications
You must be signed in to change notification settings - Fork 29
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
fix: use signal backend on android #80
fix: use signal backend on android #80
Conversation
Rustix does not expose pidfd functions for android, so this commit changes so that the signal backend is used on android. The pidfd functions were introduced in Linux kernel 5.1, and epoll integration were introduced in 5.3. Android version 13, is the first version where all released version of the Android common kernel is based on Linux kernel 5.4 or higher. <https://source.android.com/docs/core/architecture/kernel/android-common> Resolves Issue smol-rs#79
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! Can you add a test for building on Android to the CI?
yes, i'll add a test |
I am working on tests, but currently all tests pass except (all in tests/std.rs):
All 3 tests fails because they can't find I will give the qemu another look later. |
A full test is overkill and can be done in another PR. For now just make sure it builds. |
I think we can support this case by copying more things here. |
5668511
to
2ed6dae
Compare
I have change so that the crate only is built for android |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM aside from one nit
Co-authored-by: John Nunley <jtnunley01@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Rustix does not expose pidfd functions for android, so this
commit changes so that the signal backend is used on android.
The pidfd functions were introduced in Linux kernel 5.1, and
epoll integration were introduced in 5.3.
Android version 13, is the first version where all released
version of the Android common kernel is based on Linux kernel
5.4 or higher.
https://source.android.com/docs/core/architecture/kernel/android-common
Resolves Issue #79