summaryrefslogtreecommitdiff
path: root/signal.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-06-15 08:38:58 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-06-15 08:38:58 +0000
commite3dd9a78db1f918bd4e621492975b741269b5cb4 (patch)
tree315f3e9816177191f77cee461837040cdb0a230a /signal.c
parent5cbefb96b998480208b26ea260658c985bf7b861 (diff)
re-introduce RUBY_GC_STRESS test removed by YARV.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'signal.c')
-rw-r--r--signal.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/signal.c b/signal.c
index e785b6fb96..3f104b1854 100644
--- a/signal.c
+++ b/signal.c
@@ -1047,10 +1047,14 @@ Init_signal(void)
#endif
#ifdef SIGBUS
+# ifndef RUBY_GC_STRESS
install_sighandler(SIGBUS, sigbus);
+# endif
#endif
#ifdef SIGSEGV
+# ifndef RUBY_GC_STRESS
install_sighandler(SIGSEGV, sigsegv);
+# endif
#endif
#ifdef SIGPIPE
install_sighandler(SIGPIPE, sigpipe);