mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Use &.
instead of modifier if
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63306 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4602d8e2b7
commit
cb67e0bd9c
1 changed files with 2 additions and 2 deletions
|
@ -657,8 +657,8 @@ module Open3
|
||||||
end
|
end
|
||||||
pid = spawn(*cmd, cmd_opts)
|
pid = spawn(*cmd, cmd_opts)
|
||||||
wait_thrs << Process.detach(pid)
|
wait_thrs << Process.detach(pid)
|
||||||
r.close if r
|
r&.close
|
||||||
w2.close if w2
|
w2&.close
|
||||||
r = r2
|
r = r2
|
||||||
}
|
}
|
||||||
result = parent_io + [wait_thrs]
|
result = parent_io + [wait_thrs]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue