Fix incorrect comment.

The event loop uses poll(2), not select(2).
This commit is contained in:
Edd Barrett 2023-01-25 11:52:40 +00:00
parent e0910d8004
commit 493ca3364a
No known key found for this signature in database

View File

@ -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();