From 8654b94cae4723cda3b4009eb4f6529e97e84538 Mon Sep 17 00:00:00 2001 From: "Glenn Y. Rolland" Date: Sat, 28 Nov 2015 09:48:10 +0100 Subject: [PATCH] Handle interrupts. --- bin/epafh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/bin/epafh b/bin/epafh index d7dcdb8..73c3976 100755 --- a/bin/epafh +++ b/bin/epafh @@ -19,6 +19,9 @@ require 'epafh' #Net::IMAP.debug = true - -Epafh::App.start(ARGV) - +begin + Epafh::App.start(ARGV) +rescue Interrupt + puts " Interrupt! Exiting." + exit 1 +end