]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
util: do not report errors in virPidFileForceCleanupPathFull
authorJán Tomko <jtomko@redhat.com>
Tue, 7 Mar 2023 14:50:18 +0000 (15:50 +0100)
committerJán Tomko <jtomko@redhat.com>
Wed, 8 Mar 2023 11:16:56 +0000 (12:16 +0100)
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@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
src/util/virpidfile.c

index 05d19100c6f01ddeedb549fd2812d0bff7112016..4693aaaf788b14100adca09d167041f2745c6270 100644 (file)
@@ -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);