Mercurial > hg > freeDiameter
diff extensions/acl_wl/aw_tree.c @ 1354:0dff6a604b0a
acl_wl: add reload support using SIGUSR1
author | Thomas Klausner <tk@giga.or.at> |
---|---|
date | Fri, 17 May 2019 12:59:19 +0200 |
parents | 1af09cc156d6 |
children | 3cbe458fbfa9 |
line wrap: on
line diff
--- a/extensions/acl_wl/aw_tree.c Sun May 12 23:16:22 2019 +0800 +++ b/extensions/acl_wl/aw_tree.c Fri May 17 12:59:19 2019 +0200 @@ -69,9 +69,9 @@ }; /* The root of the tree */ -static struct fd_list tree_root = FD_LIST_INITIALIZER(tree_root); +struct fd_list tree_root = FD_LIST_INITIALIZER(tree_root); -/* Note: we don't need to lock, since we add only when parsing the conf, and then read only */ +/* Note: we lock accesses to the tree with acl_wl_lock because of config reload */ /* The parsed name */