Skip to content

Commit 493ca33

Browse files
committed
Fix incorrect comment.
The event loop uses poll(2), not select(2).
1 parent e0910d8 commit 493ca33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/cargo-util/src/read2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ mod imp {
3232
let mut errfd = 1;
3333

3434
while nfds > 0 {
35-
// wait for either pipe to become readable using `select`
35+
// wait for either pipe to become readable using `poll`
3636
let r = unsafe { libc::poll(fds.as_mut_ptr(), nfds, -1) };
3737
if r == -1 {
3838
let err = io::Error::last_os_error();

0 commit comments

Comments
 (0)