mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00
Fix incorrect comment.
The event loop uses poll(2), not select(2).
This commit is contained in:
parent
e0910d8004
commit
493ca3364a
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user