Handle EINTR in epoll for native timers

This commit is contained in:
Alex Crichton 2014-01-23 12:33:34 -08:00
parent 657e353022
commit aa78da3f45

View file

@ -85,6 +85,7 @@ fn helper(input: libc::c_int, messages: Port<Req>) {
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
};