Skip to content

Commit aa78da3

Browse files
committed
Handle EINTR in epoll for native timers
1 parent 657e353 commit aa78da3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libnative/io/timer_timerfd.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ fn helper(input: libc::c_int, messages: Port<Req>) {
8585
events.len() as libc::c_int, -1)
8686
} {
8787
0 => fail!("epoll_wait returned immediately!"),
88+
-1 if os::errno() == libc::EINTR as int => { continue }
8889
-1 => fail!("epoll wait failed: {}", os::last_os_error()),
8990
n => n
9091
};

0 commit comments

Comments
 (0)