-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Ucred returns pid field for OpenBSD. #3919
Conversation
Is this because it currently does the wrong thing? Can we have a test that catches it? |
Not so much but more to address #3102 |
Aha, that would be nice to include in the description. |
Please push new commits instead of amending your existing commit. It makes it easier for me to see what changed since I last looked. |
was mostly stylistic as I do not have rustfmt on my netbsd VM. |
tokio/src/net/unix/ucred.rs
Outdated
#[cfg(target_os = "openbsd")] | ||
use libc::sockpeercred; | ||
#[cfg(any(target_os = "linux", target_os = "android"))] | ||
use libc::ucred; | ||
#[cfg(target_os = "openbsd")] | ||
#[allow(non_camel_case_types)] | ||
type ucred = sockpeercred; |
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.
#[cfg(target_os = "openbsd")] | |
use libc::sockpeercred; | |
#[cfg(any(target_os = "linux", target_os = "android"))] | |
use libc::ucred; | |
#[cfg(target_os = "openbsd")] | |
#[allow(non_camel_case_types)] | |
type ucred = sockpeercred; | |
#[cfg(target_os = "openbsd")] | |
use libc::sockpeercred as ucred; | |
#[cfg(any(target_os = "linux", target_os = "android"))] | |
use libc::ucred; |
tokio/src/net/unix/ucred.rs
Outdated
} | ||
#[cfg(any(target_os = "dragonfly", target_os = "freebsd"))] |
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.
Just inserting a newline here.
} | |
#[cfg(any(target_os = "dragonfly", target_os = "freebsd"))] | |
} | |
#[cfg(any(target_os = "dragonfly", target_os = "freebsd"))] |
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.
This seems right. It's a bit unfortunate that we don't have tests for any of this though.
No description provided.