lib/rbbt/util/cmd.rb in rbbt-util-5.21.4 vs lib/rbbt/util/cmd.rb in rbbt-util-5.21.5

- old
+ new

@@ -130,12 +130,10 @@ Log.log line, stderr if Integer === stderr and log end serr.close end - #SmartIO.tie sout, pid, cmd, post, in_content, sin, serr - # ConcurrentStream.setup sout, :pids => pids, :autojoin => no_wait, :no_fail => no_fail sout else err = "" @@ -145,9 +143,10 @@ end serr.close end ConcurrentStream.setup sout, :pids => pids, :autojoin => no_wait, :no_fail => no_fail + out = StringIO.new sout.read sout.close unless sout.closed? Process.waitpid pid