From 884f1eed2c4cebe4c0658b71ecef7a3ce3ae60d1 Mon Sep 17 00:00:00 2001 From: ko1 Date: Tue, 25 Dec 2007 04:47:47 +0000 Subject: [PATCH] * thread.c (rb_thread_wait_fd_rw): should check EBADF on select(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ thread.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 1bef620f26..c7b78432ae 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Tue Dec 25 13:44:51 2007 Koichi Sasada + + * thread.c (rb_thread_wait_fd_rw): should check EBADF on select(). + Tue Dec 25 13:30:03 2007 Koichi Sasada * thread_pthread.c, thread_pthread.h, thread_win32.c, 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); } }