aboutsummaryrefslogtreecommitdiffstats
path: root/proc.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-05 06:34:58 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-05 06:34:58 +0000
commit7e0b9e8fc3a57dd7bb7c8e8ddeed79276b40ef00 (patch)
tree97f824b17fa185bfab39946a89776ea0479d7ccd /proc.c
parent1d354095c6c0eaff39f48e000ed04d6c18b1fe15 (diff)
downloadruby-7e0b9e8fc3a57dd7bb7c8e8ddeed79276b40ef00.tar.gz
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 d685fe289d..6370904109 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;