From: "Nobuyoshi.Nakada" Date: 2000-10-11T11:22:19+09:00 Subject: [ruby-dev:11163] Re: 複数 Thread で止まった なかだです。 At Wed, 11 Oct 2000 04:30:18 +0900 Kazuhiro NISHIYAMA wrote: > e.rb:8:in `start': Insecure operation `start' for level 4 (SecurityError) > from e.rb:6 > from e.rb:5:in `start' > from e.rb:5 見落としてましたが、外側の Thread.start でも SecurityError になってし まうのもまずいんですね。 # なんかさらに ad hoc な感じ。 diff -pruPX ./.excludes current/eval.c devel/eval.c --- current/eval.c Tue Oct 10 16:03:15 2000 +++ devel/eval.c Wed Oct 11 10:27:01 2000 @@ -7799,6 +7799,7 @@ rb_thread_start_0(fn, arg, th) rb_thread_remove(th); if (state && status != THREAD_TO_KILL && !NIL_P(ruby_errinfo)) { th->flags |= THREAD_RAISED; + ruby_safe_level = th->safe; if (state == TAG_FATAL) { /* fatal error within this thread, need to stop whole script */ main_thread->errinfo = ruby_errinfo; -- --- 僕の前にBugはない。 --- 僕の後ろにBugはできる。 中田 伸悦