Searched refs:fd_lock (Results 1 - 1 of 1) sorted by relevance

/systemd/src/udev/
H A Dudevd.c411 int fd_lock = -1; local
443 fd_lock = open(udev_device_get_devnode(d), O_RDONLY|O_CLOEXEC|O_NOFOLLOW|O_NONBLOCK);
444 if (fd_lock >= 0 && flock(fd_lock, LOCK_SH|LOCK_NB) < 0) {
446 fd_lock = safe_close(fd_lock);
474 safe_close(fd_lock);

Completed in 13 milliseconds