summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-06-26 07:30:01 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-06-26 07:30:01 +0000
commitab7c645fee1f3776951da9928c57f774c80e55ce (patch)
tree52047a5711ba4bb683a0d6273a43ec893826074d /thread.c
parent9b9cc53e236ebae47b2f96d5ab7c3f9e3c158702 (diff)
* thread.c (rb_thread_wait_fd_rw): terminate fdset.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/thread.c b/thread.c
index 7aec816dc5..9174b533eb 100644
--- a/thread.c
+++ b/thread.c
@@ -1764,6 +1764,8 @@ rb_thread_wait_fd_rw(int fd, int read)
result = do_select(fd + 1, 0, rb_fd_ptr(&set), 0, 0);
}
+ rb_fd_term(&set);
+
if (result < 0 && errno != EBADF) {
rb_sys_fail(0);
}