Skip to content

Commit 6dc4f85

Browse files
authored
net: clarify the behavior of UCred::pid() on Cygwin (#7611)
1 parent 637fc1d commit 6dc4f85

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

spellcheck.dic

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
306
1+
307
22
&
33
+
44
<
@@ -75,6 +75,7 @@ CQE
7575
cqe's
7676
customizable
7777
Customizable
78+
Cygwin
7879
datagram
7980
Datagram
8081
datagrams

tokio/src/net/unix/ucred.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ impl UCred {
2424

2525
/// Gets PID (process ID) of the process.
2626
///
27-
/// This is only implemented under Linux, Android, iOS, macOS, Solaris and
28-
/// Illumos. On other platforms this will always return `None`.
27+
/// This is only implemented under Linux, Android, iOS, macOS, Solaris,
28+
/// Illumos and Cygwin. On other platforms this will always return `None`.
2929
pub fn pid(&self) -> Option<unix::pid_t> {
3030
self.pid
3131
}

0 commit comments

Comments
 (0)