summaryrefslogtreecommitdiffstats
path: root/thread.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-03-19 16:02:05 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-03-19 16:02:05 +0000
commit6fafbc232c9d657230b631a4ab81407e0150e7c5 (patch)
treeae851bd3e04f1bed534c5f1487b70ca7e32a2717 /thread.c
parentfb43ec963d44646af786181797f0c7fb28294608 (diff)
downloadruby-6fafbc232c9d657230b631a4ab81407e0150e7c5.tar.gz
ruby-6fafbc232c9d657230b631a4ab81407e0150e7c5.tar.xz
ruby-6fafbc232c9d657230b631a4ab81407e0150e7c5.zip
* thread.c (thread_create_core): block is not used if first_func
is given. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread.c b/thread.c
index 8c689bd5d..78471c28e 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;