Yukihiro Matsumoto wrote:
> これは[ruby-core:2133]と同じに見えるんですが。
> なんか勘違いしてますか?

すいません、抜き出す場所を間違えてました。
[ruby-core:2133]だけだと引数なしのsleepが動作しなかったので
以下の変更を追加する必要があるのかなと思います:

--- ruby-1.8.2/eval.c	17 Jul 2004 02:23:51 -0000	1.616.2.37
+++ ruby-1.8.2/eval.c	21 Jul 2004 16:32:23 -0000
@@ -10910,11 +10913,14 @@
 void
 rb_thread_sleep_forever()
 {
+    int thr_critical = rb_thread_critical;
     if (curr_thread == curr_thread->next ||
 	curr_thread->status == THREAD_TO_KILL) {
+	rb_thread_critical = Qtrue;
 	TRAP_BEG;
 	pause();
+	rb_thread_critical = thr_critical;
 	TRAP_END;
 	return;
     }


-- 
やまだあきら / akira yamada  <http://arika.org>