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
+1
View File
@@ -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
};