aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/plugins/sql/sql_logger.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2011-12-29 19:13:08 +0100
committerTobias Brunner <tobias@strongswan.org>2012-05-02 14:45:38 +0200
commitf9f867899ae5f7198d2c80bf2519e542556095ba (patch)
tree43deb74a6bc6b00257b0b808a351c9d2e42298b9 /src/libcharon/plugins/sql/sql_logger.c
parentecb5abd7fa7a5a53afdbd4dee28a7806b317f4e4 (diff)
downloadstrongswan-f9f867899ae5f7198d2c80bf2519e542556095ba.tar.bz2
strongswan-f9f867899ae5f7198d2c80bf2519e542556095ba.tar.xz
Use a separate list and mutex for loggers.
This avoids deadlocks caused by extensive listener_t implementations which might want to acquire a lock which is currently held by another thread wanting to log messages. Since the latter requires that thread to acquire the same lock the initial thread currently holds this previously resulted in a deadlock. With this change logging messages does not require threads to acquire the main lock in bus_t and thus avoids the deadlock.
Diffstat (limited to 'src/libcharon/plugins/sql/sql_logger.c')
0 files changed, 0 insertions, 0 deletions