aboutsummaryrefslogtreecommitdiffstats
path: root/signal.c
diff options
context:
space:
mode:
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");
}
}