We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b7d8bc9 + b6c1e95 commit 655977eCopy full SHA for 655977e
src/lib.rs
@@ -591,7 +591,11 @@ mod imp {
591
loop {
592
fd.revents = 0;
593
if libc::poll(&mut fd, 1, -1) == -1 {
594
- return Err(io::Error::last_os_error());
+ let e = io::Error::last_os_error();
595
+ match e.kind() {
596
+ io::ErrorKind::Interrupted => continue,
597
+ _ => return Err(e),
598
+ }
599
}
600
if fd.revents == 0 {
601
continue;
@@ -605,8 +609,10 @@ mod imp {
605
609
"early EOF on jobserver pipe",
606
610
))
607
611
608
- Err(ref e) if e.kind() == io::ErrorKind::WouldBlock => {}
- Err(e) => return Err(e),
612
+ Err(e) => match e.kind() {
613
+ io::ErrorKind::WouldBlock | io::ErrorKind::Interrupted => continue,
614
615
+ },
616
617
618
0 commit comments