aboutsummaryrefslogtreecommitdiffstats
path: root/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread.c b/thread.c
index 5bf5299221..1a1d3661c3 100644
--- a/thread.c
+++ b/thread.c
@@ -1850,7 +1850,7 @@ rb_thread_wait_fd_rw(int fd, int read)
rb_fd_term(&set);
- if (result < 0 && errno != EBADF) {
+ if (result < 0) {
rb_sys_fail(0);
}
}