lib/rbbt/util/cmd.rb in rbbt-util-5.21.94 vs lib/rbbt/util/cmd.rb in rbbt-util-5.21.95
- old
+ new
@@ -30,10 +30,11 @@
pipe = options.delete(:pipe)
post = options.delete(:post)
log = options.delete(:log)
no_fail = options.delete(:no_fail)
no_wait = options.delete(:no_wait)
+
dont_close_in = options.delete(:dont_close_in)
log = true if log.nil?
if stderr == true
@@ -125,15 +126,10 @@
else
in_thread = nil
sin.close
end
- if no_wait
- pids = []
- else
- pids = [pid]
- end
-
+ pids = [pid]
if pipe
err_thread = Thread.new do
while line = serr.gets
Log.log line, stderr if Integer === stderr and log