summaryrefslogtreecommitdiffstats
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
commit57d47da6fc9d11487ad28f524f803304afdd346a (patch)
tree315f3e9816177191f77cee461837040cdb0a230a
parent0cbf16c375c44100b2b49b56359e7b4cefa034ad (diff)
downloadruby-57d47da6fc9d11487ad28f524f803304afdd346a.tar.gz
ruby-57d47da6fc9d11487ad28f524f803304afdd346a.tar.xz
ruby-57d47da6fc9d11487ad28f524f803304afdd346a.zip
re-introduce RUBY_GC_STRESS test removed by YARV.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--signal.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/signal.c b/signal.c
index e785b6fb9..3f104b185 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);