Bug #8137

r39819 以降 Process.kill(0, $$) が終了しない

Added by Hiroshi SHIBATA about 1 year ago. Updated about 1 year ago.

[ruby-dev:47182]
Status:Closed
Priority:Normal
Assignee:Motohiro KOSAKI
Category:core
Target version:2.1.0
ruby -v:ruby 2.1.0dev (2013-03-20 trunk 39842) [x86_64-darwin12.3.0] Backport:

Description

r39819 以降、以下のコードが終了せずにデッドロックとなります。

$ ruby -e 'Process.kill(0, $$)'

1.9.3, 2.0.0 では正常に終了します。この影響により例えば以下のようなコードが動かなくなるので、デッドロックは回避するようにして頂けないでしょうか。

https://github.com/puppetlabs/puppet/blob/master/lib/puppet/util/pidlock.rb#L46

Associated revisions

Revision 39862
Added by Nobuyoshi Nakada about 1 year ago

thread.c: fix deadlock

  • thread.c (ruby_kill): get rid of deadlock on signal 0. [Bug #8137]

History

#1 Updated by Nobuyoshi Nakada about 1 year ago

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

This issue was solved with changeset r39862.
Hiroshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


thread.c: fix deadlock

  • thread.c (ruby_kill): get rid of deadlock on signal 0. [Bug #8137]

Also available in: Atom PDF