]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
leaseshelper: use virPidFileAcquirePathFull
authorJán Tomko <jtomko@redhat.com>
Tue, 7 Mar 2023 13:40:47 +0000 (14:40 +0100)
committerJán Tomko <jtomko@redhat.com>
Wed, 8 Mar 2023 11:16:56 +0000 (12:16 +0100)
The only caller that actually wants to wait for the lock.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
src/network/leaseshelper.c

index ed1bc49346734b3a5167fa60b2b9cd98a26aab0e..b1ce313e6a2cc78a6671d4ca44753239db27cff1 100644 (file)
@@ -159,7 +159,7 @@ main(int argc, char **argv)
     pid_file = g_strdup(RUNSTATEDIR "/leaseshelper.pid");
 
     /* Try to claim the pidfile, exiting if we can't */
-    if ((pid_file_fd = virPidFileAcquirePath(pid_file, true, getpid())) < 0) {
+    if ((pid_file_fd = virPidFileAcquirePathFull(pid_file, true, getpid())) < 0) {
         fprintf(stderr,
                 _("Unable to acquire PID file: %s\n errno=%d"),
                 pid_file, errno);