net: clarify the behavior of UCred::pid() on Cygwin (#7611)

This commit is contained in:
Martin Grigorov 2025-09-14 19:05:05 +03:00 committed by GitHub
parent 637fc1d103
commit 6dc4f85f0b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,4 @@
306
307
&
+
<
@ -75,6 +75,7 @@ CQE
cqe's
customizable
Customizable
Cygwin
datagram
Datagram
datagrams

View File

@ -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
}