Project

General

Profile

Actions

Bug #941

closed

ignores SIGQUIT on FreeBSD 7.1

Added by naruse (Yui NARUSE) almost 16 years ago. Updated over 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 #1

Updated by yugui (Yuki Sonoda) almost 16 years ago

  • Target version changed from 1.9.1 Release Candidate to 1.9.1 RC2

=begin

=end

Actions #2

Updated by naruse (Yui NARUSE) almost 16 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
Applied in changeset r21265.
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0