From 78d18354b6a3587c8e53ea9525f3e9cb54ecdf4b Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Sun, 14 Jul 2024 14:42:12 -0400 Subject: [PATCH] Remove `ignore_interrupts` in `SystemCommand`. --- Library/Homebrew/system_command.rb | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/Library/Homebrew/system_command.rb b/Library/Homebrew/system_command.rb index 061cb1b90a..31915d1f5a 100644 --- a/Library/Homebrew/system_command.rb +++ b/Library/Homebrew/system_command.rb @@ -238,14 +238,12 @@ class SystemCommand } options[:chdir] = chdir if chdir - raw_stdin, raw_stdout, raw_stderr, raw_wait_thr = ignore_interrupts do - Open3.popen3( - env.merge({ "COLUMNS" => Tty.width.to_s }), - [executable, executable], - *args, - **options, - ) - end + raw_stdin, raw_stdout, raw_stderr, raw_wait_thr = Open3.popen3( + env.merge({ "COLUMNS" => Tty.width.to_s }), + [executable, executable], + *args, + **options, + ) write_input_to(raw_stdin) raw_stdin.close_write