Project

General

Profile

Actions

Bug #727

closed

Signal(CLD) seems not to work on OS X

Added by pragdave (Dave Thomas) over 13 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Normal
Target version:
ruby -v:
Backport:
[ruby-core:19744]

Description

=begin
I've noticed differences in the handling of SIGCLD in 1.9. For example, the following code:

     Signal.trap("CLD")  { puts "Child died" }
     fork && Process.wait

now reports

  t.rb:2:in `wait': Interrupted system call (Errno::EINTR)
           from t.rb:2:in `<main>'

With 1.8, it just says "Child died" (which is what I'd expect)
=end


Related issues 2 (1 open1 closed)

Related to Ruby master - Bug #947: Signal handler block is never called when the program is too shortClosedko1 (Koichi Sasada)12/29/200801/20/2009Actions
Related to Ruby master - Bug #4173: TestProcess#test_wait_and_sigchild が、たまに失敗するOpenActions
Actions

Also available in: Atom PDF