summaryrefslogtreecommitdiff
path: root/proc.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-05 06:34:58 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-05 06:34:58 (GMT)
commit2475db57649d7c591d6b521aee981a731702ec49 (patch)
tree97f824b17fa185bfab39946a89776ea0479d7ccd /proc.c
parentc09cdd9f5ed423fb69b2649fb6873491af6e0c6a (diff)
proc.c: set ep properly
* proc.c (proc_new): link ep to calling block. [ruby-core:70980] [Bug #11566] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52036 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/proc.c b/proc.c
index d685fe2..6370904 100644
--- a/proc.c
+++ b/proc.c
@@ -601,6 +601,7 @@ proc_new(VALUE klass, int8_t is_lambda)
if (RUBY_VM_IFUNC_P(procval)) {
VALUE newprocval = rb_proc_alloc(klass);
rb_proc_t *proc = RTYPEDDATA_DATA(newprocval);
+ proc->block = *block;
proc->block.iseq = (rb_iseq_t *)procval;
proc->block.proc = newprocval;
return newprocval;