]> git.ipfire.org Git - thirdparty/strongswan.git/commit
watcher: release threads waiting in remove() when watcher thread gets cancelled
authorMartin Willi <martin@revosec.ch>
Mon, 1 Jul 2013 16:34:08 +0000 (18:34 +0200)
committerMartin Willi <martin@revosec.ch>
Wed, 17 Jul 2013 14:55:48 +0000 (16:55 +0200)
commit8acae7143244994bf0f28b975081f10e14a11022
tree32d7c23c03948caa573b894d53d0b6b3e4372342
parent63b8f829be5de77ee890b2fe4bf4cdbfac5a5893
watcher: release threads waiting in remove() when watcher thread gets cancelled

During daemon shutdown, users might call remove() after processor.set_threads(0)
has been called. This gets problematic, as a watch event might be unable
to signal completion when no threads are available anymore. Work around this
issue by cancelling waiters once processor.cancel() has been called.
src/libstrongswan/processing/watcher.c