[libvirt PATCH 6/6] util: do not report errors in virPidFileForceCleanupPathFull

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Use the quiet version of virPidFileAcquirePath and remove the error
reset, since there's nothing to reset anymore.

https://bugzilla.redhat.com/show_bug.cgi?id=2171973

Signed-off-by: Ján Tomko <jtomko@xxxxxxxxxx>
---
 src/util/virpidfile.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/util/virpidfile.c b/src/util/virpidfile.c
index 05d19100c6..4693aaaf78 100644
--- a/src/util/virpidfile.c
+++ b/src/util/virpidfile.c
@@ -578,10 +578,8 @@ virPidFileForceCleanupPathFull(const char *path, bool group)
     if (virPidFileReadPath(path, &pid) < 0)
         return -1;
 
-    fd = virPidFileAcquirePath(path, 0);
+    fd = virPidFileAcquirePathFull(path, false, true, 0);
     if (fd < 0) {
-        virResetLastError();
-
         if (pid > 1 && group)
             pid = virProcessGroupGet(pid);
 
-- 
2.39.2




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux