summaryrefslogtreecommitdiff
path: root/signal.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-10-18 13:59:19 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-10-18 13:59:19 +0000
commite18aabc7dbea54420435d3d6639f23805ce6ce76 (patch)
tree0c3231fc062f34b59b18d932e45fc450ad194936 /signal.c
parent6da8a20bb7f7898c35e5be9ad7641f024d3dfa1b (diff)
* signal.c (Init_signal): handle SIGTERM. fixed: [ruby-list:42895]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'signal.c')
-rw-r--r--signal.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/signal.c b/signal.c
index 1a46bac910..2c0003520e 100644
--- a/signal.c
+++ b/signal.c
@@ -941,6 +941,9 @@ Init_signal(void)
#ifdef SIGQUIT
install_sighandler(SIGQUIT, sighandler);
#endif
+#ifdef SIGTERM
+ install_sighandler(SIGTERM, sighandler);
+#endif
#ifdef SIGALRM
install_sighandler(SIGALRM, sighandler);
#endif