mirror of https://gitee.com/openkylin/libvirt.git
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