From 680e2019233c8ed17a62ce2cb2d8308b3593d977 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Sat, 5 Sep 2009 20:46:07 +0100 Subject: Fix double newline after Interrupt Seems to be an issue with Ruby system() call doing a double fork.--- Library/Homebrew/formula.rb | 2 +- Library/Homebrew/utils.rb | 9 +++++---- bin/brew | 5 ++++- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index a13ed3866..55293ca80 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -23,7 +23,7 @@ # class ExecutionError e - puts # seemingly a newline is typical + # 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! exit 130 rescue SystemCallError, RuntimeError => e if ARGV.debug? -- cgit v1.2.3