From 08b53aa67a5da8daf602424847c4aeacd0ac75eb Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 19 Mar 2007 16:02:05 +0000 Subject: * thread.c (thread_create_core): block is not used if first_func is given. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12101 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 8c689bd5d1..78471c28ee 100644 --- a/thread.c +++ b/thread.c @@ -341,7 +341,7 @@ thread_create_core(VALUE klass, VALUE args, VALUE (*fn)(ANYARGS), void *arg) /* setup thread environment */ th->first_args = args; - th->first_proc = rb_block_proc(); + th->first_proc = fn ? Qfalse : rb_block_proc(); th->first_func = fn; th->first_func_arg = arg; -- cgit v1.2.3