diff options
| author | Amador Pahim <apahim@redhat.com> | 2018-01-22 21:50:28 +0100 |
|---|---|---|
| committer | Eduardo Habkost <ehabkost@redhat.com> | 2018-02-05 19:53:55 -0200 |
| commit | af99fa9fe22ba1c6139d1fbe6a66f3b01d575cab (patch) | |
| tree | 9f1379dc5d42d795d16f0bdc3c6bd726dc188f0e /include/qapi/qobject-output-visitor.h | |
| parent | 74af2e59d26712aa673832ec03ec6eac53066c03 (diff) | |
| download | focaccia-qemu-af99fa9fe22ba1c6139d1fbe6a66f3b01d575cab.tar.gz focaccia-qemu-af99fa9fe22ba1c6139d1fbe6a66f3b01d575cab.zip | |
qemu.py: better control of created files
To launch a VM, we need to create basically two files: the monitor socket (if it's a UNIX socket) and the qemu log file. For the qemu log file, we currently just open the path, which will create the file if it does not exist or overwrite the file if it does exist. For the monitor socket, if it already exists, we are currently removing it, even if it's not created by us. This patch moves to _pre_launch() the responsibility to create a temporary directory to host the files so we can remove the whole directory on _post_shutdown(). Signed-off-by: Amador Pahim <apahim@redhat.com> Message-Id: <20180122205033.24893-2-apahim@redhat.com> Reviewed-by: Eduardo Habkost <ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'include/qapi/qobject-output-visitor.h')
0 files changed, 0 insertions, 0 deletions