These calls are not necessary because F_SETLK does not block.
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
l.l_start = 0;
l.l_len = 0;
l.l_start = 0;
l.l_len = 0;
- time_disable_restart();
error = fcntl(fd, F_SETLK, &l) == -1 ? errno : 0;
error = fcntl(fd, F_SETLK, &l) == -1 ? errno : 0;
if (!error) {
*lockfilep = lockfile_register(name, s.st_dev, s.st_ino, fd);
if (!error) {
*lockfilep = lockfile_register(name, s.st_dev, s.st_ino, fd);