mirror of
https://github.com/ruby/ruby.git
synced 2026-08-29 15:45:44 +08:00
It's good hygiene to close the stdin pipe as soon as you are done writing to it. This can happen for example if "ruby extconf.rb" spawns another process (for example "cargo build", which may spawn arbitrary commands to fetch credentials) and any of those subprocesses attempt to read STDIN until it is closed. We can close it as soon as it's created since we aren't writing to it at all. https://github.com/ruby/rubygems/commit/ab09bfdf10