From 19039471c0ae20886f1ca109e364fc4ac2da678e Mon Sep 17 00:00:00 2001
From: Max Howell <max@methylblue.com>
Date: Mon, 7 Dec 2009 17:56:47 +0000
Subject: [PATCH] Ignore ^C when cleaning up at exit

---
 Library/Homebrew/download_strategy.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index 579968e85c..a319416bfe 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -44,7 +44,7 @@ class CurlDownloadStrategy <AbstractDownloadStrategy
       begin
         curl @url, '-o', @dl
       rescue Exception
-        @dl.unlink if @dl.exist?
+        ignore_interrupts { @dl.unlink if @dl.exist? }
         raise
       end
     else
-- 
GitLab