https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112009-01-01T17:00:54ZRuby Issue Tracking SystemRuby master - Bug #960: SIGINT signal is not handled properly on OpenSolarishttps://bugs.ruby-lang.org/issues/960?journal_id=24992009-01-01T17:00:54Zyugui (Yuki Sonoda)yugui@yugui.jp
<ul><li><strong>Target version</strong> changed from <i>1.9.1 Release Candidate</i> to <i>1.9.1 RC2</i></li></ul><p>=begin</p>
<p>=end</p> Ruby master - Bug #960: SIGINT signal is not handled properly on OpenSolarishttps://bugs.ruby-lang.org/issues/960?journal_id=25052009-01-02T16:06:43Zmame (Yusuke Endoh)mame@ruby-lang.org
<ul></ul><p>=begin<br>
Hi,</p>
<blockquote>
<p>Following test failed.. (<a href="http://ruby.peppercode.com/log/ruby-1.9.1/last.txt" class="external">http://ruby.peppercode.com/log/ruby-1.9.1/last.txt</a> )</p>
<p>test_should_propagate_signaled(TestBeginEndBlock) [/usr/local/src/ruby-1.9.1-rc1/test/ruby/test_beginendblock.rb:96]</p>
<p>It seems that a ruby loop doesn't get interrupted by 'Ctrl-C' on OpenSolaris.</p>
</blockquote>
<p>I think the following patch will fix this issue. Could you try it?</p>
<a name="Index-processc"></a>
<h1 >Index: process.c<a href="#Index-processc" class="wiki-anchor">¶</a></h1>
<p>--- process.c (revision 21266)<br>
+++ process.c (working copy)<br>
@@ -2736,12 +2736,8 @@<br>
}</p>
<p>-#if defined(sun)<br>
-#define signal(a,b) sigset(a,b)<br>
-#else<br>
-# if defined(POSIX_SIGNAL)<br>
-# define signal(a,b) posix_signal(a,b)<br>
-# endif<br>
+#if defined(POSIX_SIGNAL)<br>
+# define signal(a,b) posix_signal(a,b)<br>
#endif</p>
<p>void</p>
<p>--<br>
Yusuke ENDOH <a href="mailto:mame@tsg.ne.jp" class="email">mame@tsg.ne.jp</a><br>
=end</p> Ruby master - Bug #960: SIGINT signal is not handled properly on OpenSolarishttps://bugs.ruby-lang.org/issues/960?journal_id=25072009-01-02T17:30:11Zdaesan (Dae San Hwang)lists@daesan.com
<ul></ul><p>=begin<br>
Hi Yusuke,</p>
<p>Your patch indeed solves the problem.</p>
<p>It fixed two other process related test failures as well. Thanks a lot!</p>
<p>daesan</p>
<blockquote>
<p>I think the following patch will fix this issue. Could you try it?</p>
</blockquote>
<blockquote>
<a name="Index-processc"></a>
<h1 >Index: process.c<a href="#Index-processc" class="wiki-anchor">¶</a></h1>
<p>--- process.c (revision 21266)<br>
+++ process.c (working copy)<br>
@@ -2736,12 +2736,8 @@<br>
}</p>
</blockquote>
<blockquote>
<p>-#if defined(sun)<br>
-#define signal(a,b) sigset(a,b)<br>
-#else<br>
-# if defined(POSIX_SIGNAL)<br>
-# define signal(a,b) posix_signal(a,b)<br>
-# endif<br>
+#if defined(POSIX_SIGNAL)<br>
+# define signal(a,b) posix_signal(a,b)<br>
#endif</p>
</blockquote>
<blockquote>
<p>void</p>
</blockquote>
<p>=end</p> Ruby master - Bug #960: SIGINT signal is not handled properly on OpenSolarishttps://bugs.ruby-lang.org/issues/960?journal_id=25082009-01-02T22:27:06Zmame (Yusuke Endoh)mame@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>=begin<br>
Applied in changeset r21275.<br>
=end</p> Ruby master - Bug #960: SIGINT signal is not handled properly on OpenSolarishttps://bugs.ruby-lang.org/issues/960?journal_id=25122009-01-03T12:33:21Zdaesan (Dae San Hwang)lists@daesan.com
<ul></ul><p>=begin<br>
Hi Yusuke,</p>
<p>Can you apply this patch to 1.9.1 branch as well? Thanks!</p>
<p>daesan<br>
=end</p> Ruby master - Bug #960: SIGINT signal is not handled properly on OpenSolarishttps://bugs.ruby-lang.org/issues/960?journal_id=25132009-01-03T20:12:25Zshyouhei (Shyouhei Urabe)shyouhei@ruby-lang.org
<ul><li><strong>Assignee</strong> set to <i>yugui (Yuki Sonoda)</i></li></ul><p>=begin</p>
<p>=end</p>