leaseshelper: use virPidFileAcquirePathFull

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>
This commit is contained in:
Ján Tomko 2023-03-07 14:40:47 +01:00
parent 5af4e467af
commit f64e90346f

View 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);