# File test/test_multi_process.rb, line 112 def test_notify_restart pid_list = Array.new begin 10.times do pid_list.push fork{ @restart_signal.notify_restart # call on child process exit! } end @restart_signal.wait # call on parent process assert_equal(1, @restart_call) ensure for pid in pid_list Process.waitpid(pid, 0) end end assert_equal(1, @restart_call) end