aboutsummaryrefslogtreecommitdiffstats
path: root/lock.c
diff options
context:
space:
mode:
Diffstat (limited to 'lock.c')
-rw-r--r--lock.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lock.c b/lock.c
index f29129d1..8a47703a 100644
--- a/lock.c
+++ b/lock.c
@@ -123,6 +123,8 @@ void lock_or_die(void)
}
if (fsync(fd)) e = 1;
if (close(fd)) e = 1;
+ } else {
+ e = 1;
}
if (e == 0) {
lock_acquired = TRUE;