diff options
author | Ben Pfaff <blp@nicira.com> | 2013-04-12 09:39:50 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2013-06-05 14:57:58 -0700 |
commit | 0c53ae66a3091f0aee03224d90872bd656d58c6e (patch) | |
tree | 87733395bac7931787c3303baec80aeade9c862b /lib/lockfile.c | |
parent | b173e167a49ae2ee0a886a80d0c49674d966c8dc (diff) |
lockfile: Remove calls to time_disable_restart()/time_enable_restart().
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>
Diffstat (limited to 'lib/lockfile.c')
-rw-r--r-- | lib/lockfile.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/lockfile.c b/lib/lockfile.c index 3708aec0..c37f332f 100644 --- a/lib/lockfile.c +++ b/lib/lockfile.c @@ -251,9 +251,7 @@ lockfile_try_lock(const char *name, pid_t *pidp, struct lockfile **lockfilep) l.l_start = 0; l.l_len = 0; - time_disable_restart(); error = fcntl(fd, F_SETLK, &l) == -1 ? errno : 0; - time_enable_restart(); if (!error) { *lockfilep = lockfile_register(name, s.st_dev, s.st_ino, fd); |