ruby-changes:60641
From: Nobuyoshi <ko1@a...>
Date: Fri, 3 Apr 2020 10:50:14 +0900 (JST)
Subject: [ruby-changes:60641] 3df764721a (master): [sync_default_gems.rb] Use block form `IO.popen` to reap zombies
https://git.ruby-lang.org/ruby.git/commit/?id=3df764721a From 3df764721a6a988116982a5a9af80486ad801e3d Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Wed, 1 Apr 2020 18:36:54 +0900 Subject: [sync_default_gems.rb] Use block form `IO.popen` to reap zombies [ci skip] diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb index 6692309..6072a82 100644 --- a/tool/sync_default_gems.rb +++ b/tool/sync_default_gems.rb @@ -366,7 +366,7 @@ def sync_default_gems_with_commits(gem, range) https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L366 puts "Pick #{sha} from #{$repositories[gem.to_sym]}." skipped = false - result = IO.popen(%W"git cherry-pick #{sha}").read + result = IO.popen(%W"git cherry-pick #{sha}", &:read) if result =~ /nothing\ to\ commit/ `git reset` skipped = true -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/