Skip to content

Commit 4377fb4

Browse files
committed
Fix for cygwin select impl
1 parent fcb33ab commit 4377fb4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

msys2/PKGBUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
pkgname=fish
22
pkgver=4.0.0
3-
pkgrel=2
3+
pkgrel=3
44
epoch=
55
pkgdesc='Smart and user friendly shell intended mostly for interactive use'
66
arch=('x86_64')

src/fd_monitor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ impl BackgroundFdMonitor {
386386
.map(|duration| duration.as_micros() as u64)
387387
.unwrap_or(FdReadableSet::kNoTimeout),
388388
);
389-
if ret < 0 && !matches!(errno().0, libc::EINTR | libc::EBADF) {
389+
if ret < 0 && !matches!(errno().0, libc::EINTR | libc::EBADF | 0) {
390390
// Surprising error
391391
perror("select");
392392
}

0 commit comments

Comments
 (0)