From 541db44bc219b71ddf3e44e19afc49b150cbd5ae Mon Sep 17 00:00:00 2001 From: Gil Obradors Date: Mon, 14 Sep 2020 18:28:46 +0200 Subject: [PATCH 1/3] Update common.py fix transfer buffer process --- libtmux/common.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/libtmux/common.py b/libtmux/common.py index 65f9edcfc..088ed5750 100644 --- a/libtmux/common.py +++ b/libtmux/common.py @@ -205,11 +205,7 @@ def __init__(self, *args, **kwargs): self.process = subprocess.Popen( cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE ) - self.process.wait() - stdout = self.process.stdout.read() - self.process.stdout.close() - stderr = self.process.stderr.read() - self.process.stderr.close() + stdout, stderr = self.process.communicate() returncode = self.process.returncode except Exception as e: logger.error('Exception for %s: \n%s' % (subprocess.list2cmdline(cmd), e)) From b57a42b8548df2493039ac284f4af13e02b7afb6 Mon Sep 17 00:00:00 2001 From: Gil Obradors Date: Mon, 14 Sep 2020 18:38:42 +0200 Subject: [PATCH 2/3] Update CHANGES --- CHANGES | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGES b/CHANGES index 7d9c67b2a..b68879d0b 100644 --- a/CHANGES +++ b/CHANGES @@ -6,6 +6,7 @@ Here you can find the recent changes to libtmux current ------- +- :issue:`251`: Enchance subprocess interaction stdin/out/err. Needed for interact with big buffer - :issue:`295`: Publish docs via our own action - :issue:`295`: Move more packaging over to poetry, though we'll keep setup.py for the moment to ensure compatibility package maintainers. From 766b45e0367934824e1e27a43ea8e8b37e6ba4a7 Mon Sep 17 00:00:00 2001 From: Gil Obradors Date: Mon, 14 Sep 2020 18:39:05 +0200 Subject: [PATCH 3/3] Update CHANGES --- CHANGES | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index b68879d0b..d6aba9073 100644 --- a/CHANGES +++ b/CHANGES @@ -6,7 +6,7 @@ Here you can find the recent changes to libtmux current ------- -- :issue:`251`: Enchance subprocess interaction stdin/out/err. Needed for interact with big buffer +- :issue:`251`: Enchance subprocess interaction std[in|out|err]. Needed for interact with big buffer - :issue:`295`: Publish docs via our own action - :issue:`295`: Move more packaging over to poetry, though we'll keep setup.py for the moment to ensure compatibility package maintainers.