On 8/13/19 8:04 AM, Pino Toscano wrote:
- feed the content directly to stdin, avoid the need of read (and
write)
a temporary file
- read all the output at once, without a tail-recurive function
recursive
- apply trimming and first line discarding after closing the process
---
generator/utils.ml | 35 ++++++++++++++++-------------------
1 file changed, 16 insertions(+), 19 deletions(-)
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3226
Virtualization:
qemu.org |
libvirt.org