diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2005-10-30 18:35:09 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2005-10-30 18:35:09 +0000 |
commit | 6819e08663b3adf8f5ce4ed7dbc01aaba814e7fd (patch) | |
tree | 0955b6c60891cade84c39036eff9db985f356f38 /lock.c | |
parent | 2c32441420fcb5c3ad12d44aea7fea11669a1d08 (diff) | |
download | fetchmail-6819e08663b3adf8f5ce4ed7dbc01aaba814e7fd.tar.gz fetchmail-6819e08663b3adf8f5ce4ed7dbc01aaba814e7fd.tar.bz2 fetchmail-6819e08663b3adf8f5ce4ed7dbc01aaba814e7fd.zip |
Detect error if lock file cannot be created.
svn path=/trunk/; revision=4375
Diffstat (limited to 'lock.c')
-rw-r--r-- | lock.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |