mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-05 03:24:06 +03:00
Handle EINTR in epoll for native timers
This commit is contained in:
@@ -85,6 +85,7 @@ fn del(efd: libc::c_int, fd: libc::c_int) {
|
||||
events.len() as libc::c_int, -1)
|
||||
} {
|
||||
0 => fail!("epoll_wait returned immediately!"),
|
||||
-1 if os::errno() == libc::EINTR as int => { continue }
|
||||
-1 => fail!("epoll wait failed: {}", os::last_os_error()),
|
||||
n => n
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user