Project

General

Profile

Bug #13794 » sched_yield_loop.rb

gregoryp (Gregory Potamianos), 09/29/2017 10:16 AM

 
require 'timeout'

1000.times do
Timeout::timeout(3) do
cpid = Kernel.fork do
mypid = Process.pid
Kernel.exec(*['/bin/echo', 'executed', "#{mypid}"])
end
Process.waitpid2(cpid)
end
end
(4-4/4)