From 173f5f4a87c9e39877c1364ed4c319a81ef6dc23 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Mon, 26 Oct 2009 18:23:28 +0000 Subject: [PATCH] Fixed SIGINT handling, so we can have our newline We trap the INT in the install process now so the newline race condition is avoided. Much neater and more polished now. --- bin/brew | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/bin/brew b/bin/brew index 92e1065be9..46efe1f159 100755 --- a/bin/brew +++ b/bin/brew @@ -235,13 +235,10 @@ rescue UsageError puts ARGV.usage exit 1 rescue SystemExit - ohai "Kernel.exit" if ARGV.verbose? + puts "Kernel.exit" if ARGV.verbose? exit 1 rescue Interrupt => e - # puts # seemingly a newline is typical - # Above is now commented out because the system() call forks and then forks - # again, so there are two of "us" so we get two exceptions raising and thus - # two newlines, which buggers up the shell. FIXME! + puts # seemingly a newline is typical exit 130 rescue SystemCallError, RuntimeError => e if ARGV.debug?