From 6dc4f85f0bf1d5c22c15187a2b8cb78784ab4bda Mon Sep 17 00:00:00 2001 From: Martin Grigorov Date: Sun, 14 Sep 2025 19:05:05 +0300 Subject: [PATCH] net: clarify the behavior of `UCred::pid()` on Cygwin (#7611) --- spellcheck.dic | 3 ++- tokio/src/net/unix/ucred.rs | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/spellcheck.dic b/spellcheck.dic index a0829f934..3182d65ad 100644 --- a/spellcheck.dic +++ b/spellcheck.dic @@ -1,4 +1,4 @@ -306 +307 & + < @@ -75,6 +75,7 @@ CQE cqe's customizable Customizable +Cygwin datagram Datagram datagrams diff --git a/tokio/src/net/unix/ucred.rs b/tokio/src/net/unix/ucred.rs index bdc417f13..265ed9678 100644 --- a/tokio/src/net/unix/ucred.rs +++ b/tokio/src/net/unix/ucred.rs @@ -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 { self.pid }