diff options
| author | Jack Nagel | 2014-08-27 17:25:13 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-08-27 17:25:13 -0500 |
| commit | f4ddfe8f81c83d944c641cc75e8b900442e50b1c (patch) | |
| tree | 6fc3174a3f90bad16f2c4d3d5c04acd9899f04a5 /Library | |
| parent | 81ec9a998f92c5e2cffbb7c8e8b961f5f1118fd5 (diff) | |
| download | homebrew-f4ddfe8f81c83d944c641cc75e8b900442e50b1c.tar.bz2 | |
Make sure all exceptions are sent back to the parent process
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/build.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Library/Homebrew/build.rb b/Library/Homebrew/build.rb index 29252ea99..c7211f032 100644 --- a/Library/Homebrew/build.rb +++ b/Library/Homebrew/build.rb @@ -176,15 +176,15 @@ class Build end end -error_pipe = IO.new(ENV["HOMEBREW_ERROR_PIPE"].to_i, "w") -error_pipe.fcntl(Fcntl::F_SETFD, Fcntl::FD_CLOEXEC) +begin + error_pipe = IO.new(ENV["HOMEBREW_ERROR_PIPE"].to_i, "w") + error_pipe.fcntl(Fcntl::F_SETFD, Fcntl::FD_CLOEXEC) -# Invalidate the current sudo timestamp in case a build script calls sudo -system "/usr/bin/sudo", "-k" + # Invalidate the current sudo timestamp in case a build script calls sudo + system "/usr/bin/sudo", "-k" -trap("INT", old_trap) + trap("INT", old_trap) -begin formula = ARGV.formulae.first options = Options.create(ARGV.options_only) build = Build.new(formula, options) |
