lib/rbbt/util/cmd.rb in rbbt-util-5.13.37 vs lib/rbbt/util/cmd.rb in rbbt-util-5.14.0

- old
+ new

@@ -110,11 +110,10 @@ if stderr == true stderr = Log::HIGH end - # Process cmd_options cmd_options = process_cmd_options options if cmd =~ /'\{opt\}'/ cmd.sub!('\'{opt}\'', cmd_options) else cmd << " " << cmd_options @@ -201,11 +200,10 @@ Thread.new do while line = serr.gets Log.log line, stderr if Integer === stderr and log end serr.close - Thread.exit! end #SmartIO.tie sout, pid, cmd, post, in_content, sin, serr ConcurrentStream.setup sout, :pids => [pid], :autojoin => true @@ -215,10 +213,9 @@ Thread.new do while not serr.eof? err << serr.gets if Integer === stderr end serr.close - Thread.exit end ConcurrentStream.setup sout, :pids => [pid], :autojoin => true out = StringIO.new sout.read sout.close unless sout.closed?