summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-03-13 09:28:35 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-03-13 09:28:35 +0000
commit319e440d0fa59c3cc269e6c7be556b4beb22c328 (patch)
tree1803c7417eb4347e642aa8daadbaf382c4647a6b /thread.c
parent5398ef4904fb49b1088a2578f9be4b3ab4164550 (diff)
merge revision(s) 57948,57950: [Backport #13304]
thread.c: rb_thread_fd_close [ci skip] * thread.c (rb_thread_fd_close): re-define only for abi-check, abort if called. [ruby-core:80078] [Bug #13304] thread.c: rb_thread_fd_close [ci skip] * thread.c (rb_thread_fd_close): remove deprecated. a couple of external libraries used it. [ruby-core:80078] [Bug #13304] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_4@57959 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 ee75ec39ee..e080e161b2 100644
--- a/thread.c
+++ b/thread.c
@@ -2193,6 +2193,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