diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2021-04-29 19:03:26 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2021-04-29 19:11:20 +0300 |
commit | 9eca2fa180cb562128a9db1bad8c77d0b3bdc6a4 (patch) | |
tree | 76e402ef9ed270619d6618a060de75237f10bda1 /libmailutils/tests/Makefile.am | |
parent | 6a1152b883407a5cc7d77faa023d2948ac70e8de (diff) | |
download | mailutils-9eca2fa180cb562128a9db1bad8c77d0b3bdc6a4.tar.gz mailutils-9eca2fa180cb562128a9db1bad8c77d0b3bdc6a4.tar.bz2 |
Further improvements of the locker interface.
This fixes a bug that prevented previous versions of mailutils to
retry aquiring the lock.
Locking configuration (the "locking" section) is improved.
* dotlock/dotlock.c: New options: --retry (-r), --delay (-t),
--pid-check (-p).
Use the "locking" capability.
* libmailutils/base/locker.c: Remove the uses of assert().
(mu_locker_lock_mode): Fix the retry loop.
(lock_dotlock): Use mu_asprintf to create temporary lock name.
Return EAGAIN on temporary error conditions.
(lock_kernel): Fix typo (EACCES).
* libmailutils/cli/stdcapa.c (cb_locker_flags): Locker flags are
deprecated.
(cb_locker_retry_timeout,cb_locker_retry_count): Clear the
MU_LOCKER_RETRY flag, if supplied a zero value.
(cb_locker_external): Clear the MU_LOCKER_EXTERNAL flag (revert
to the dotlock locker type) if the value is a false boolean value.
* libmailutils/tests/Makefile.am: Add new test.
* libmailutils/tests/testsuite.at: Include new test,
* libmailutils/tests/lck.c: New test program.
* libmailutils/tests/lock.at: New test.
Diffstat (limited to 'libmailutils/tests/Makefile.am')
-rw-r--r-- | libmailutils/tests/Makefile.am | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libmailutils/tests/Makefile.am b/libmailutils/tests/Makefile.am index 6e82124de..13f513c9d 100644 --- a/libmailutils/tests/Makefile.am +++ b/libmailutils/tests/Makefile.am @@ -43,6 +43,7 @@ noinst_PROGRAMS = \ globtest\ hdrcpy\ imapio\ + lck\ listop\ listsort\ linetrack\ @@ -120,6 +121,7 @@ TESTSUITE_AT += \ linecon.at\ list.at\ linetrack.at\ + lock.at\ logstr.at\ mailcap.at\ mimehdr.at\ |