diff --git a/qubes/tools/qubesd_query.py b/qubes/tools/qubesd_query.py index 68f00147..7960d922 100644 --- a/qubes/tools/qubesd_query.py +++ b/qubes/tools/qubesd_query.py @@ -54,8 +54,10 @@ def qubesd_client(socket, payload, *args): writer.write_eof() try: - data = yield from reader.read() - sys.stdout.buffer.write(data) # pylint: disable=no-member + while not reader.at_eof(): + data = yield from reader.read(4096) + sys.stdout.buffer.write(data) # pylint: disable=no-member + sys.stdout.flush() except asyncio.CancelledError: return finally: