]> git.cworth.org Git - sup/commitdiff
trap term
authorWilliam Morgan <wmorgan-sup@masanjin.net>
Wed, 5 Aug 2009 19:41:45 +0000 (15:41 -0400)
committerWilliam Morgan <wmorgan-sup@masanjin.net>
Wed, 5 Aug 2009 19:52:21 +0000 (15:52 -0400)
bin/sup

diff --git a/bin/sup b/bin/sup
index b32ad75b71a45e5005b0de9d00e02a7c13cfd2a6..d52a0ad1f441ad696323d205015984753112810b 100755 (executable)
--- a/bin/sup
+++ b/bin/sup
@@ -160,6 +160,8 @@ begin
   Redwood::start
   Index.load
 
+  trap("TERM") { |x| raise "so speaking as i think, i die, i die!" }
+
   if(s = Redwood::SourceManager.source_for DraftManager.source_name)
     DraftManager.source = s
   else