aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMax Howell2009-09-05 20:46:07 +0100
committerMax Howell2009-09-05 20:46:07 +0100
commit2f5bcc935a00de7188c4bbb0475fe367198cf3c7 (patch)
tree441923fd05a1354c82fb0244bd751529dfbf8a94 /bin
parentca9aa61815a5838fbc99bf722eb2b00ebd56d4f1 (diff)
downloadhomebrew-2f5bcc935a00de7188c4bbb0475fe367198cf3c7.tar.bz2
Fix double newline after Interrupt
Seems to be an issue with Ruby system() call doing a double fork.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/brew5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/brew b/bin/brew
index cc89e9263..9876c9a99 100755
--- a/bin/brew
+++ b/bin/brew
@@ -210,7 +210,10 @@ rescue UsageError
rescue SystemExit
ohai "Kernel.exit" if ARGV.verbose?
rescue Interrupt => 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?