Searched refs:fd_lock (Results 1 – 2 of 2) sorted by relevance
66 int fd_lock; member1093 if (s->fd_lock >= 0) in wl_socket_destroy()1094 close(s->fd_lock); in wl_socket_destroy()1109 s->fd_lock = -1; in wl_socket_alloc()1439 socket->fd_lock = open(socket->lock_addr, O_CREAT | O_CLOEXEC | O_RDWR, in wl_socket_lock()1442 if (socket->fd_lock < 0) { in wl_socket_lock()1448 if (flock(socket->fd_lock, LOCK_EX | LOCK_NB) < 0) { in wl_socket_lock()1467 close(socket->fd_lock); in wl_socket_lock()1468 socket->fd_lock = -1; in wl_socket_lock()
293 int fd_lock = -1; in worker_spawn() local326 … fd_lock = open(udev_device_get_devnode(d), O_RDONLY|O_CLOEXEC|O_NOFOLLOW|O_NONBLOCK); in worker_spawn()327 if (fd_lock >= 0 && flock(fd_lock, LOCK_SH|LOCK_NB) < 0) { in worker_spawn()329 fd_lock = safe_close(fd_lock); in worker_spawn()353 safe_close(fd_lock); in worker_spawn()