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
commit680e2019233c8ed17a62ce2cb2d8308b3593d977 (patch)
tree2a2560f907f971cfe29f3ac70f92133eb0bf33dc /bin
parent64e767155a8322d051ea7ff57a5bedf1f237ae2e (diff)
downloadbrew-680e2019233c8ed17a62ce2cb2d8308b3593d977.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?