• D
    network: acquire a pidfile in the driver root directory · c03aef7c
    Daniel P. Berrangé 提交于
    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/network/driver.pid
    
    In unprivileged libvirtd this ends up locking
    
      /run/user/$UID/libvirt/network/run/driver.pid
    
    NB, the latter can vary depending on $XDG_RUNTIME_DIR
    Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
    c03aef7c
bridge_driver.c 186.6 KB