diff --git a/Library/Homebrew/utils/fork.rb b/Library/Homebrew/utils/fork.rb index 57ddbfae29..5087ca716c 100644 --- a/Library/Homebrew/utils/fork.rb +++ b/Library/Homebrew/utils/fork.rb @@ -26,11 +26,8 @@ module Utils ignore_interrupts(:quietly) do # the child will receive the interrupt and marshal it back begin socket = server.accept_nonblock - # rubocop:disable Lint/ShadowedException - # FIXME: https://github.com/bbatsov/rubocop/issues/4843 rescue Errno::EAGAIN, Errno::EWOULDBLOCK, Errno::ECONNABORTED, Errno::EPROTO, Errno::EINTR retry unless Process.waitpid(pid, Process::WNOHANG) - # rubocop:enable Lint/ShadowedException else socket.send_io(write) socket.close