-
Notifications
You must be signed in to change notification settings - Fork 356
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
Illumos: Added epoll and eventfd #4136
Conversation
This comment has been minimized.
This comment has been minimized.
tests/pass-dep/libc/libc-eventfd.rs
Outdated
let fd = unsafe { libc::syscall(libc::SYS_eventfd2, initval, flags) }; | ||
assert_ne!(fd, -1); | ||
cfg_if::cfg_if! { | ||
if #[cfg(target_os = "illumos")] { |
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.
Please add the #[cfg]
to the function instead.
Good catch! |
9016eba
to
26ffab4
Compare
@@ -1,7 +1,7 @@ | |||
//@compile-flags: -Zmiri-preemption-rate=0 | |||
//~^ERROR: deadlocked | |||
//~^^ERROR: deadlocked | |||
//@only-target: linux | |||
//@only-target: linux illumos |
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.
Shouldn't this include android
as well?
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.
Yeah, it should.
4ed3319
to
b6523c0
Compare
When updating a PR, please either do a force push or add a new commit. (Generally new commits are preferred, but for small changes to an almost-done PR like this, a force push is okay.) If you first add a new commit and the force-push that away, Github makes it entirely impossible for me to see the diff since my last review. That's clearly a sign of Github being a terrible tool for PR review, but we have to live with the tools we have and work around their limitations... |
Fixes #4017.