From 4483c88639f63d6db810b4f5e4df37e11c6e421a Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 19 Mar 2007 16:38:30 +0000 Subject: * thread.c (thread_start_func_2): store the result of first_func as well as first_proc. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'thread.c') diff --git a/thread.c b/thread.c index 78471c28e..14c0c654b 100644 --- a/thread.c +++ b/thread.c @@ -304,7 +304,7 @@ thread_start_func_2(rb_thread_t *th, VALUE *stack_start) RARRAY_LEN(args), RARRAY_PTR(args)); } else { - (*th->first_func)(th->first_func_arg); + th->value = (*th->first_func)(th->first_func_arg); } } else { -- cgit