aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--thread.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 79815d9076..8ad83433bf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Tue Nov 27 10:31:29 2012 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
+
+ * thread.c (rb_thread_terminate_all): suppress a warning.
+
Tue Nov 27 09:29:11 2012 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread.c (thread_join): raises ThreadError if target therad
diff --git a/thread.c b/thread.c
index 5214c68955..c9471717e0 100644
--- a/thread.c
+++ b/thread.c
@@ -390,6 +390,7 @@ rb_thread_terminate_all(void)
PUSH_TAG();
if ((state = EXEC_TAG()) == 0) {
+ th = GET_THREAD();
native_sleep(th, 0);
RUBY_VM_CHECK_INTS_BLOCKING(th);
}