Skip to content
Commit 59080d84 authored by Daniel P. Berrangé's avatar Daniel P. Berrangé
Browse files

libxl: acquire a pidfile in the driver root directory



When we allow multiple instances of the driver for the same user
account, using a separate root directory, we need to ensure mutual
exclusion. Use a pidfile to guarantee this.

In privileged libvirtd this ends up locking

   /var/run/libvirt/libxl/driver.pid

In unprivileged libvirtd this ends up locking

  /run/user/$UID/libvirt/libxl/run/driver.pid

NB, the latter can vary depending on $XDG_RUNTIME_DIR

Signed-off-by: default avatarDaniel P. Berrangé <berrange@redhat.com>
parent defddd04
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment