summaryrefslogtreecommitdiff
path: root/lib/mixlib/shellout/unix.rb
diff options
context:
space:
mode:
authorMax Lincoln <max@devopsy.com>2014-07-09 16:05:17 -0400
committerMax Lincoln <max@devopsy.com>2014-07-17 13:01:04 -0400
commit5ce6ead83be1a46241db53e401f44c9a40f598ce (patch)
treede80864f2c23906496195ed55ad98e420d4ae558 /lib/mixlib/shellout/unix.rb
parentb5e27147f0a5f0ccf44ff4968be2bdfb0c2ce35d (diff)
downloadmixlib-shellout-5ce6ead83be1a46241db53e401f44c9a40f598ce.tar.gz
Support separate live stream for stderr
Diffstat (limited to 'lib/mixlib/shellout/unix.rb')
-rw-r--r--lib/mixlib/shellout/unix.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mixlib/shellout/unix.rb b/lib/mixlib/shellout/unix.rb
index 46c2c73..249c3d4 100644
--- a/lib/mixlib/shellout/unix.rb
+++ b/lib/mixlib/shellout/unix.rb
@@ -288,7 +288,7 @@ module Mixlib
def read_stderr_to_buffer
while chunk = child_stderr.read_nonblock(READ_SIZE)
@stderr << chunk
- @live_stream << chunk if @live_stream
+ live_stderr_stream << chunk if live_stderr_stream
end
rescue Errno::EAGAIN
rescue EOFError