From 493ca3364a48ad8cf68fde2056a99e2ac0095ec6 Mon Sep 17 00:00:00 2001 From: Edd Barrett Date: Wed, 25 Jan 2023 11:52:40 +0000 Subject: [PATCH] Fix incorrect comment. The event loop uses poll(2), not select(2). --- crates/cargo-util/src/read2.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/cargo-util/src/read2.rs b/crates/cargo-util/src/read2.rs index 53322a51d..0d4029052 100644 --- a/crates/cargo-util/src/read2.rs +++ b/crates/cargo-util/src/read2.rs @@ -32,7 +32,7 @@ mod imp { let mut errfd = 1; while nfds > 0 { - // wait for either pipe to become readable using `select` + // wait for either pipe to become readable using `poll` let r = unsafe { libc::poll(fds.as_mut_ptr(), nfds, -1) }; if r == -1 { let err = io::Error::last_os_error();