Searched refs:local_lock_fd (Results 1 – 1 of 1) sorted by relevance
57 static int local_lock_fd = -1; variable205 local_lock_fd = open(ptr, O_CREAT | O_WRONLY | O_NOFOLLOW | O_CLOEXEC, S_IRUSR | S_IWUSR); in local_server()210 if (local_lock_fd < 0) { in local_server()215 if (flock(local_lock_fd, LOCK_EX | LOCK_NB) < 0) { in local_server()216 close(local_lock_fd); in local_server()232 if (local_lock_fd >= 0) in end_local_server()233 close(local_lock_fd); in end_local_server()234 local_lock_fd = -1; in end_local_server()