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