Lines Matching refs:lockfile
79 client_get_lock(char *lockfile)
83 log_debug("lock file is %s", lockfile);
85 if ((lockfd = open(lockfile, O_WRONLY|O_CREAT, 0600)) == -1) {
111 char *lockfile = NULL;
138 xasprintf(&lockfile, "%s.lock", path);
139 if ((lockfd = client_get_lock(lockfile)) < 0) {
142 free(lockfile);
143 lockfile = NULL;
161 free(lockfile);
165 fd = server_start(client_proc, flags, base, lockfd, lockfile);
169 free(lockfile);
177 free(lockfile);