mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 21:34:54 +03:00
util: do not report errors in virPidFileForceCleanupPathFull
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>
This commit is contained in:
parent
4479a307df
commit
7e94712699
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user