diff options
author | Chris Johns <chrisj@rtems.org> | 2017-04-25 09:31:37 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2017-04-25 09:31:37 +1000 |
commit | 9e7ed079b33792309d16260a5b2a751a863febc1 (patch) | |
tree | 98b8be20f3f2dd7ddaaaf8019d02ab8f40606723 /rtemstoolkit | |
parent | b89a7e4b186c1f1aea8d74f20cb9bf4b2ed798a6 (diff) |
rtemstoolkit: Set proc buffering to 0 to not block on smaller reads.
Diffstat (limited to 'rtemstoolkit')
-rwxr-xr-x | rtemstoolkit/execute.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rtemstoolkit/execute.py b/rtemstoolkit/execute.py index 048f7a3..8e09b81 100755 --- a/rtemstoolkit/execute.py +++ b/rtemstoolkit/execute.py @@ -261,6 +261,8 @@ class execute(object): name = '_stdout[%s]' % (name), args = (self, io.open(proc.stdout.fileno(), + mode = 'rb', + buffering = 0, closefd = False), self.output, '')) @@ -271,6 +273,8 @@ class execute(object): name = '_stderr[%s]' % (name), args = (self, io.open(proc.stderr.fileno(), + mode = 'rb', + buffering = 0, closefd = False), self.output, self.error_prefix)) |