]> git.ipfire.org Git - thirdparty/mlmmj.git/commit
Add ability to subscribe to 'both' and avoid a deadlock when switching.
authorBen Schmidt <none@none>
Wed, 25 Jan 2012 11:34:57 +0000 (22:34 +1100)
committerBen Schmidt <none@none>
Wed, 25 Jan 2012 11:34:57 +0000 (22:34 +1100)
commit425c5650055f6efaa6ee408709951e7c7bd32ec2
tree3dc3792cfbee46cbedd04d8f32b8259e22b39355
parentc94bd02455820669a56695f436ce78fc3ea4fd5e
Add ability to subscribe to 'both' and avoid a deadlock when switching.

- 'both' means normal and digest versions simultaneously; information about
  this feature is not included in the default list texts, but a few power users
  find it helpful.
- Only take out locks when actually performing a subscription, not before
  checking whether the address is already subscribed; we only really need it
  when we are actually changing the file, and there is a potential deadlock
  which could occur while waiting for unsubscription to complete as part of a
  switch if the lock is taken earlier.
- Also moved code which sends unsubscription confirmations so that it only runs
  once, after unsubsciption has been completed, not every time the address is
  removed; this is only really important when 'both' is a realistic
  subscription option, but it could avoid other double-sends as well.
ChangeLog
README.listtexts
include/mlmmj.h
include/subscriberfuncs.h
src/listcontrol.c
src/mlmmj-bounce.c
src/mlmmj-process.c
src/mlmmj-sub.c
src/mlmmj-unsub.c
src/subscriberfuncs.c