]> git.proxmox.com Git - mirror_qemu.git/commit - tests/qtest/libqtest.c
qtest: unlink QEMU pid file after startup
authorStefan Hajnoczi <stefanha@redhat.com>
Thu, 21 Nov 2013 10:33:17 +0000 (11:33 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 3 Feb 2014 15:06:24 +0000 (16:06 +0100)
commit1ad3c6abc0d67e00b84abaa5527bc64b70ca2205
tree32a8784435829995303cf37f1abbd624de256827
parent2f61120c10da9128357510debc8e66880cd2bfdc
qtest: unlink QEMU pid file after startup

After starting the QEMU process and initializing the QMP connection, we
can read the pid file and unlink it.

Just stash away the pid instead of the pid filename.  This way we can
avoid pid file leaks since running tests may abort(3) without cleanup.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
tests/libqtest.c