mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 01:34:11 +03:00
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:
parent
5af4e467af
commit
f64e90346f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user