summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-03-26 08:25:14 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-03-26 08:25:14 +0000
commitce3ea463ba7c11d3825db3131a292abca543bb4e (patch)
tree89c2bbbb7ab205f7672406f8ba3399bcc4a59441 /thread.c
parent1fb37c4c1af40584a9238615808af3cb22e11428 (diff)
* thread.c (rb_thread_fd_close): unintentionally removed at r58094.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@58141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/thread.c b/thread.c
index d769402105..348ab8026e 100644
--- a/thread.c
+++ b/thread.c
@@ -2159,6 +2159,12 @@ rb_notify_fd_close(int fd)
return busy;
}
+void
+rb_thread_fd_close(int fd)
+{
+ while (rb_notify_fd_close(fd));
+}
+
/*
* call-seq:
* thr.raise