]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
all: don't wait for driver lock during startup v5.10.0-rc1
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 26 Nov 2019 14:28:22 +0000 (15:28 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 26 Nov 2019 14:46:47 +0000 (15:46 +0100)
There are two daemons that wait for acquiring their pid files:
virtnetworkd and virtstoraged. This is undesirable as the idea
is to quit early if unable to acquire the pid file.

Fixes: v5.6.0-rc1~207.
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
src/network/bridge_driver.c
src/storage/storage_driver.c

index 07dba8cfe4287fe4f0f833e11c635a2d1e27545c..e36064596955c8611c404377e92d7e19f67630ed 100644 (file)
@@ -761,7 +761,7 @@ networkStateInitialize(bool privileged,
 
     if ((network_driver->lockFD =
          virPidFileAcquire(network_driver->stateDir, "driver",
-                           true, getpid())) < 0)
+                           false, getpid())) < 0)
         goto error;
 
     /* if this fails now, it will be retried later with dnsmasqCapsRefresh() */
index d8355d3c3cf4d2a4bca604e89e02865c783e5da4..580a5e6f15467d69848a53740987c43e7339b9d0 100644 (file)
@@ -296,7 +296,7 @@ storageStateInitialize(bool privileged,
 
     if ((driver->lockFD =
          virPidFileAcquire(driver->stateDir, "driver",
-                           true, getpid())) < 0)
+                           false, getpid())) < 0)
         goto error;
 
     if (virStoragePoolObjLoadAllState(driver->pools,