summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-03-13 02:14:15 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-03-13 02:14:15 +0000
commitc617568c53923acdcf7f15589d8705fe80a6f47c (patch)
treeb4805d222d94731cf464fcbfe02febe87a8ff095 /thread.c
parentc279ac36155ccc5015066ae5ca47d7746801aae0 (diff)
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] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/thread.c b/thread.c
index 597fd293d6..803ed66494 100644
--- a/thread.c
+++ b/thread.c
@@ -2197,6 +2197,16 @@ rb_notify_fd_close(int fd)
return busy;
}
+void
+rb_thread_fd_close(int fd)
+{
+#ifdef DONT_USE
+ while (rb_notify_fd_close(fd));
+#else
+ DEPRECATED_INTERNAL_FEATURE("rb_thread_fd_close");
+#endif
+}
+
/*
* call-seq:
* thr.raise