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
@ -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…
x
Reference in New Issue
Block a user