Actions
Bug #941
closedignores SIGQUIT on FreeBSD 7.1
Description
=begin
FreeBSD 7.1-PRERELEASE amd64 にて、SIGQUIT を無視してしまうようです。
- Failure:
test_status_kill(TestProcess) [test/ruby/test_process.rb:941]:
Expected ["#<Process::Status: pid 53404 SIGQUIT (signal )>",
"#<Process::Status: pid 53404 SIGQUIT (signal ) (core dumped)>"].include?(*["#<Process::Status: pid 53404 exit 0>"]) to return true.
書き換えると以下の通り
% cat wait.rb
sleep 10;
print "finished\n";
% ruby19 -e'pid=spawn("ruby19","wait.rb"); Thread.new{sleep 3; Process.kill(:SIGQUIT, pid) }; Process.wait(pid);;p $?'
finished
#<Process::Status: pid 53220 exit 0>
なお、spawn("perl" に書き換えるとちゃんと殺せます
=end
Actions
Like0
Like0Like0