From: Yusuke Endoh Date: 2009-01-02T16:05:54+09:00 Subject: [ruby-core:21060] [Bug #960] SIGINT signal is not handled properly on OpenSolaris Issue #960 has been updated by Yusuke Endoh. Hi, > Following test failed.. (http://ruby.peppercode.com/log/ruby-1.9.1/last.txt ) > > test_should_propagate_signaled(TestBeginEndBlock) [/usr/local/src/ruby-1.9.1-rc1/test/ruby/test_beginendblock.rb:96] > > It seems that a ruby loop doesn't get interrupted by 'Ctrl-C' on OpenSolaris. I think the following patch will fix this issue. Could you try it? Index: process.c =================================================================== --- process.c (revision 21266) +++ process.c (working copy) @@ -2736,12 +2736,8 @@ } -#if defined(sun) -#define signal(a,b) sigset(a,b) -#else -# if defined(POSIX_SIGNAL) -# define signal(a,b) posix_signal(a,b) -# endif +#if defined(POSIX_SIGNAL) +# define signal(a,b) posix_signal(a,b) #endif void -- Yusuke ENDOH ---------------------------------------- http://redmine.ruby-lang.org/issues/show/960 ---------------------------------------- http://redmine.ruby-lang.org