tools/qvm-run: fix handling EOF
This commit is contained in:
parent
40a1769806
commit
706cecd60d
@ -95,6 +95,8 @@ def copy_stdin(stream):
|
||||
# multiprocessing.Process have sys.stdin connected to /dev/null
|
||||
stdin = open(0)
|
||||
for data in iter(lambda: stdin.buffer.read(4096), b''):
|
||||
if data is None:
|
||||
break
|
||||
stream.write(data)
|
||||
stream.close()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user