aboutsummaryrefslogtreecommitdiffstats
path: root/signal.c
diff options
context:
space:
mode:
Diffstat (limited to 'signal.c')
-rw-r--r--signal.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/signal.c b/signal.c
index bd2579dd0a..6eba832e5d 100644
--- a/signal.c
+++ b/signal.c
@@ -783,12 +783,6 @@ trap_signm(VALUE vsig)
if (sig == 0 && strcmp(s, "EXIT") != 0)
rb_raise(rb_eArgError, "unsupported signal SIG%s", s);
}
-
-#if defined(HAVE_SETITIMER)
- if (sig == SIGVTALRM) {
- rb_raise(rb_eArgError, "SIGVTALRM reserved for Thread; can't set handler");
- }
-#endif
return sig;
}
@@ -993,6 +987,18 @@ init_sigchld(int sig)
#endif
}
+void
+ruby_sig_finalize()
+{
+ sighandler_t oldfunc;
+
+ oldfunc = ruby_signal(SIGINT, SIG_IGN);
+ if (oldfunc == sighandler) {
+ ruby_signal(SIGINT, SIG_DFL);
+ }
+}
+
+
#ifdef RUBY_DEBUG_ENV
int ruby_enable_coredump = 0;
#endif