Skip to content

Commit

Permalink
binary files do not support line buffering, fix #118
Browse files Browse the repository at this point in the history
closes #119.
  • Loading branch information
lilydjwg committed Dec 19, 2020
1 parent fc62724 commit 5e544a7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions psshlib/manager.py
Expand Up @@ -347,10 +347,9 @@ def run(self):
else:
if dest is None:
dest = self.files[filename] = open(
filename, self.filewritemode, buffering=1)
filename, self.filewritemode, buffering=0)
psshutil.set_cloexec(dest)
dest.write(data)
dest.flush()

def open_files(self, host):
"""Called from another thread to create files for stdout and stderr.
Expand Down

0 comments on commit 5e544a7

Please sign in to comment.