From f7f23c5b3e6cc349f6557537096cbff9089f8ace Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 13 Feb 2005 14:12:55 +0000 Subject: * eval.c (rb_thread_start_0): restore prot_tag before rewinding. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- eval.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'eval.c') diff --git a/eval.c b/eval.c index 662af1206..ad7465630 100644 --- a/eval.c +++ b/eval.c @@ -11652,7 +11652,7 @@ rb_thread_start_0(fn, arg, th) new_thread.proc = rb_block_proc(); new_thread.arg = (VALUE)arg; th->anchor = ip; - longjmp(ip->tag->buf, TAG_THREAD); + longjmp((prot_tag = ip->tag)->buf, TAG_THREAD); } if (ruby_block) { /* should nail down higher blocks */ -- cgit