watcher: Don't wait for running callback once watcher thread cancelled
authorMartin Willi <martin@revosec.ch>
Mon, 10 Mar 2014 09:48:27 +0000 (10:48 +0100)
committerMartin Willi <martin@revosec.ch>
Wed, 7 May 2014 12:13:34 +0000 (14:13 +0200)
commitd2b07d3187c38327cf949345d6255706d3477645
tree9ce779e2064d718eaede1ca498f86b0827b253ae
parentd16d5a245f0b313bed187462e8b06dd9391e2982
watcher: Don't wait for running callback once watcher thread cancelled

During shutdown, waiting for callbacks might never complete, as queued
callbacks might not get executed under certain conditions. Not the clean fix,
but works good enough for now.

Seen on Windows in vici tests.
src/libstrongswan/processing/watcher.c