X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=lock.h;h=07d3ec34be536dd81b2e06274f6cc8bc2e1d982d;hb=910d5a2f852edb8c4e54c0e875da6a90385ab790;hp=66b2c36fc09a5ae6155d1eb9e8baa51db250b11e;hpb=35a58f784af38c9390158f1285d40c1e53baa884;p=~andy%2Ffetchmail diff --git a/lock.h b/lock.h index 66b2c36f..07d3ec34 100644 --- a/lock.h +++ b/lock.h @@ -22,15 +22,15 @@ void fm_lock_release(void); /** Check the state of the lock file. If there is an error opening or * reading the lockfile, exit with PS_EXCLUDE. If a stale lock file - * cannot be unlinked, complain, but continue. \return + * cannot be unlinked, complain and try to truncate it to 0 size. If + * truncation fails, complain and exit with PS_EXCLUDE. \return * - 0 if no lock is set * - >0 if a fetchmail is running, but not in daemon mode * - <0 if a fetchmail is running in daemon mode. */ int fm_lock_state(void); -/** If atexit(3) is available on the system this software is compiled on, - * register an exit handler to dipose of the lock on process exit. */ +/** Register an atexit() exit handler to dipose of the lock on process exit. */ void fm_lock_dispose(void); #endif