From dab04e33217403ab44553308999de8e6e1c4a8c0 Mon Sep 17 00:00:00 2001 From: Bo Anderson Date: Fri, 19 Mar 2021 17:14:59 +0000 Subject: [PATCH] utils/popen: redirect stderr to /dev/null rather than close --- Library/Homebrew/utils/popen.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/utils/popen.rb b/Library/Homebrew/utils/popen.rb index c5546c6d93..36966a5252 100644 --- a/Library/Homebrew/utils/popen.rb +++ b/Library/Homebrew/utils/popen.rb @@ -50,7 +50,7 @@ module Utils yield pipe else - options[:err] ||= :close unless ENV["HOMEBREW_STDERR"] + options[:err] ||= "/dev/null" unless ENV["HOMEBREW_STDERR"] begin exec(*args, options) rescue Errno::ENOENT