Handle EINTR in epoll for native timers
This commit is contained in:
parent
657e353022
commit
aa78da3f45
@ -85,6 +85,7 @@ fn helper(input: libc::c_int, messages: Port<Req>) {
|
|||||||
events.len() as libc::c_int, -1)
|
events.len() as libc::c_int, -1)
|
||||||
} {
|
} {
|
||||||
0 => fail!("epoll_wait returned immediately!"),
|
0 => fail!("epoll_wait returned immediately!"),
|
||||||
|
-1 if os::errno() == libc::EINTR as int => { continue }
|
||||||
-1 => fail!("epoll wait failed: {}", os::last_os_error()),
|
-1 => fail!("epoll wait failed: {}", os::last_os_error()),
|
||||||
n => n
|
n => n
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user