summaryrefslogtreecommitdiff
path: root/signal.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-13 15:09:22 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-13 15:09:22 +0000
commit4641b801664008c7ae509a79354da1bc84b6fc1c (patch)
treea27aa76689a6957d6342b2c9c409b78c01cafda1 /signal.c
parente0d427e855e514c758ffc8f776539abe70ad12d4 (diff)
* gc.c (ruby_gc_stress): moved to rb_objspace_t.
* gc.c (gc_stress_get, gc_stress_set): VM local attribute. * signal.c (sigsegv): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'signal.c')
-rw-r--r--signal.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/signal.c b/signal.c
index 51cfabd3f8..e35f3713ed 100644
--- a/signal.c
+++ b/signal.c
@@ -554,12 +554,12 @@ sigsegv(int sig)
{
if (segv_received) {
fprintf(stderr, "SEGV recieved in SEGV handler\n");
- exit(1);
+ exit(EXIT_FAILURE);
}
else {
- extern int ruby_gc_stress;
+ extern int ruby_disable_gc_stress;
segv_received = 1;
- ruby_gc_stress = 0;
+ ruby_disable_gc_stress = 1;
rb_bug("Segmentation fault");
}
}