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
commitbce06272b7de5d122ee1a21300cd29547dd6d7a8 (patch)
tree14263c9fda87bdac2854213939759ad4913166d7 /signal.c
parentaaf1dc156eba0ae626534a3248a95e6a3656717f (diff)
* signal.c (Init_signal): handle SIGTERM. fixed: [ruby-list:42895]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@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 f66fd36..8bf191e 100644
--- a/signal.c
+++ b/signal.c
@@ -987,6 +987,9 @@ Init_signal()
#ifdef SIGQUIT
install_sighandler(SIGQUIT, sighandler);
#endif
+#ifdef SIGTERM
+ install_sighandler(SIGTERM, sighandler);
+#endif
#ifdef SIGALRM
install_sighandler(SIGALRM, sighandler);
#endif