None of the callers need it anymore.
Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
/* Re-claim PID file now as we will not be daemonizing */
if (pid_file &&
- (*pid_file_fd = virPidFileAcquirePath(pid_file, false, getpid())) < 0)
+ (*pid_file_fd = virPidFileAcquirePath(pid_file, getpid())) < 0)
return -1;
if (!(lockDaemon = virLockDaemonNewPostExecRestart(object, privileged)))
}
/* If we have a pidfile set, claim it now, exiting if already taken */
- if ((pid_file_fd = virPidFileAcquirePath(pid_file, false, getpid())) < 0) {
+ if ((pid_file_fd = virPidFileAcquirePath(pid_file, getpid())) < 0) {
ret = VIR_DAEMON_ERR_PIDFILE;
goto cleanup;
}
/* Re-claim PID file now as we will not be daemonizing */
if (pid_file &&
- (*pid_file_fd = virPidFileAcquirePath(pid_file, false, getpid())) < 0)
+ (*pid_file_fd = virPidFileAcquirePath(pid_file, getpid())) < 0)
return -1;
if (!(logDaemon = virLogDaemonNewPostExecRestart(object,
}
/* If we have a pidfile set, claim it now, exiting if already taken */
- if ((pid_file_fd = virPidFileAcquirePath(pid_file, false, getpid())) < 0) {
+ if ((pid_file_fd = virPidFileAcquirePath(pid_file, getpid())) < 0) {
ret = VIR_DAEMON_ERR_PIDFILE;
goto cleanup;
}
}
/* Try to claim the pidfile, exiting if we can't */
- if ((pid_file_fd = virPidFileAcquirePath(pid_file, false, getpid())) < 0) {
+ if ((pid_file_fd = virPidFileAcquirePath(pid_file, getpid())) < 0) {
ret = VIR_DAEMON_ERR_PIDFILE;
goto cleanup;
}
int pidfilefd = -1;
char c;
- pidfilefd = virPidFileAcquirePath(cmd->pidfile, false, pid);
+ pidfilefd = virPidFileAcquirePath(cmd->pidfile, pid);
if (pidfilefd < 0)
goto fork_error;
if (virSetInherit(pidfilefd, true) < 0) {
int virPidFileAcquirePath(const char *path,
- bool waitForLock,
pid_t pid)
{
- return virPidFileAcquirePathFull(path, waitForLock, pid);
+ return virPidFileAcquirePathFull(path, false, pid);
}
if (!(pidfile = virPidFileBuildPath(dir, name)))
return -ENOMEM;
- return virPidFileAcquirePath(pidfile, false, pid);
+ return virPidFileAcquirePath(pidfile, pid);
}
if (virPidFileReadPath(path, &pid) < 0)
return -1;
- fd = virPidFileAcquirePath(path, false, 0);
+ fd = virPidFileAcquirePath(path, 0);
if (fd < 0) {
virResetLastError();
bool waitForLock,
pid_t pid) G_GNUC_WARN_UNUSED_RESULT;
int virPidFileAcquirePath(const char *path,
- bool waitForLock,
pid_t pid) G_GNUC_WARN_UNUSED_RESULT;
int virPidFileAcquire(const char *dir,
const char *name,