]> git.ipfire.org Git - thirdparty/strongswan.git/commit
daemon: Don't hold settings lock while executing start/stop scripts
authorTobias Brunner <tobias@strongswan.org>
Fri, 17 Jun 2016 08:19:37 +0000 (10:19 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 17 Jun 2016 16:43:35 +0000 (18:43 +0200)
commit941ac92b95ecf7bbfb39ff96b9b252fcc2f69d0a
treec9d40e77d3507f4a661d7877666b1985b8944d4a
parent44e83f76f3de50947a90cc37b2628646a5125353
daemon: Don't hold settings lock while executing start/stop scripts

If a called script interacts with the daemon or one of its plugins
another thread might have to acquire the write lock (e.g. to configure a
fallback or set a value).  Holding the read lock prevents that, potentially
resulting in a deadlock.
src/libcharon/daemon.c