From 5de144f3a56eaee430680bc83d80a8a3e8134fdc Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 21 Mar 2013 14:17:10 +0000 Subject: thread.c: fix deadlock * thread.c (ruby_kill): get rid of deadlock on signal 0. [ruby-dev:47182] [Bug #8137] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_signal.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'test/ruby') diff --git a/test/ruby/test_signal.rb b/test/ruby/test_signal.rb index c7cce9a9d7..fa385c0312 100644 --- a/test/ruby/test_signal.rb +++ b/test/ruby/test_signal.rb @@ -283,7 +283,13 @@ EOS # This ugly workaround was introduced to don't break # compatibility against silly example codes. assert_raise(SignalException) { - Process.kill('HUP',Process.pid) + Process.kill('HUP', Process.pid) + } + bug8137 = '[ruby-dev:47182] [Bug #8137]' + assert_nothing_raised(bug8137) { + Timeout.timeout(1) { + Process.kill(0, Process.pid) + } } end end -- cgit v1.2.3