]> git.proxmox.com Git - qemu.git/commit
qga: determine default state dir and pidfile dynamically
authorLaszlo Ersek <lersek@redhat.com>
Sat, 18 May 2013 04:31:49 +0000 (06:31 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 30 May 2013 16:37:37 +0000 (11:37 -0500)
commitc394ecb7bf55b7234f852b9c8518aefb5d0943fa
tree10a3b8227ef14d3e785cb70acd7b401414ba9a6f
parente2ea3515a9d2d747f91dadf361afcbeb57a71500
qga: determine default state dir and pidfile dynamically

No effective change on POSIX, but on Win32 the defaults come from the
environment / session.

Since commit 39097daf ("qemu-ga: use key-value store to avoid recycling fd
handles after restart") we've relied on the state directory for the fd
handles' key-value store. Even though we don't support the guest-file-*
commands on win32 yet, the key-value store is written, and it's the first
use of the state directory on win32. We should have a sensible default for
its location.

Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
qga/main.c