From 6819e08663b3adf8f5ce4ed7dbc01aaba814e7fd Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Sun, 30 Oct 2005 18:35:09 +0000 Subject: Detect error if lock file cannot be created. svn path=/trunk/; revision=4375 --- lock.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lock.c') 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; -- cgit v1.2.3