Project

General

Profile

Actions

Bug #941

closed

ignores SIGQUIT on FreeBSD 7.1

Added by naruse (Yui NARUSE) about 15 years ago. Updated almost 13 years ago.

Status:
Closed
Assignee:
-
Target version:
ruby -v:
Backport:
[ruby-dev:37637]

Description

=begin
FreeBSD 7.1-PRERELEASE amd64 にて、SIGQUIT を無視してしまうようです。

  1. 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

Also available in: Atom PDF

Like0
Like0Like0