From c180e0d8801a8fb1f4d900d6a7e36ccb7d4f557e Mon Sep 17 00:00:00 2001 From: ko1 Date: Mon, 27 May 2013 17:08:25 +0000 Subject: * vm_trace.c (rb_postponed_job_register_one): fix iteration bug. * ext/-test-/postponed_job/postponed_job.c, test/-ext-/postponed_job/test_postponed_job.rb: add a test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_trace.c | 1 + 1 file changed, 1 insertion(+) (limited to 'vm_trace.c') diff --git a/vm_trace.c b/vm_trace.c index 78113e2168..d0bcc3a498 100644 --- a/vm_trace.c +++ b/vm_trace.c @@ -1415,6 +1415,7 @@ rb_postponed_job_register_one(unsigned int flags, rb_postponed_job_func_t func, if (pjob->func == func) { return 2; } + pjob = pjob->next; } return rb_postponed_job_register(flags, func, data); -- cgit v1.2.3