mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
lvmdbusd: Call readlines instead of readline
Better to drain everything we have now that our IO is line orientated when using a ptty.
This commit is contained in:
parent
8e1e40c499
commit
a4b7f988d8
@ -69,11 +69,13 @@ class LVMShellProxy(object):
|
|||||||
|
|
||||||
for r in ready[0]:
|
for r in ready[0]:
|
||||||
if r == self.parent_stdout_fd:
|
if r == self.parent_stdout_fd:
|
||||||
stdout += self.parent_stdout.readline()
|
for line in self.parent_stdout.readlines():
|
||||||
|
stdout += line
|
||||||
elif r == self.report_stream.fileno():
|
elif r == self.report_stream.fileno():
|
||||||
report += read_decoded(self.report_stream)
|
report += read_decoded(self.report_stream)
|
||||||
elif r == self.parent_stderr_fd:
|
elif r == self.parent_stderr_fd:
|
||||||
stderr += self.parent_stderr.readline()
|
for line in self.parent_stderr.readlines():
|
||||||
|
stderr += line
|
||||||
|
|
||||||
# Check to see if the lvm process died on us
|
# Check to see if the lvm process died on us
|
||||||
if self.lvm_shell.poll() is not None:
|
if self.lvm_shell.poll() is not None:
|
||||||
|
Loading…
Reference in New Issue
Block a user