mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-25 12:00:35 +00:00
net: clarify the behavior of UCred::pid()
on Cygwin (#7611)
This commit is contained in:
parent
637fc1d103
commit
6dc4f85f0b
@ -1,4 +1,4 @@
|
||||
306
|
||||
307
|
||||
&
|
||||
+
|
||||
<
|
||||
@ -75,6 +75,7 @@ CQE
|
||||
cqe's
|
||||
customizable
|
||||
Customizable
|
||||
Cygwin
|
||||
datagram
|
||||
Datagram
|
||||
datagrams
|
||||
|
@ -24,8 +24,8 @@ impl UCred {
|
||||
|
||||
/// Gets PID (process ID) of the process.
|
||||
///
|
||||
/// This is only implemented under Linux, Android, iOS, macOS, Solaris and
|
||||
/// Illumos. On other platforms this will always return `None`.
|
||||
/// This is only implemented under Linux, Android, iOS, macOS, Solaris,
|
||||
/// Illumos and Cygwin. On other platforms this will always return `None`.
|
||||
pub fn pid(&self) -> Option<unix::pid_t> {
|
||||
self.pid
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user