]> git.cworth.org Git - sup/blobdiff - bin/sup
die gracefully upon SIGKILL
[sup] / bin / sup
diff --git a/bin/sup b/bin/sup
index 2d5de6733fcdf76f1a58caa3d64aadce0c02c143..b87c11223342aefe977b34e99f053ba548a4fc6d 100755 (executable)
--- a/bin/sup
+++ b/bin/sup
@@ -160,7 +160,7 @@ begin
   Redwood::start
   Index.load
 
-  trap("TERM") { |x| raise "so speaking as i think, i die, i die!" }
+  trap("TERM") { |x| SuicideManager.please_die! }
   trap("WINCH") { |x| BufferManager.sigwinch_happened! }
 
   if(s = Redwood::SourceManager.source_for DraftManager.source_name)