aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/plugins/kernel_wfp/kernel_wfp_ipsec.c
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2014-06-11 15:04:15 +0200
committerMartin Willi <martin@revosec.ch>2014-06-17 15:19:47 +0200
commitbc1139480f42859a4b26fe8518ef9dd7c2849a49 (patch)
treef988a5a397831b20697587dee855eab577cb9af2 /src/libcharon/plugins/kernel_wfp/kernel_wfp_ipsec.c
parent23750961d5b9052ddfe6d4746435e84ca0c87a10 (diff)
downloadstrongswan-bc1139480f42859a4b26fe8518ef9dd7c2849a49.tar.bz2
strongswan-bc1139480f42859a4b26fe8518ef9dd7c2849a49.tar.xz
watcher: Prevent race condition spawning multiple watcher threads
If file descriptors get added and removed in rapid succession, the active watcher thread might not take notice of it and continues running. However, add() spawns a watcher thread whenever a file descriptor is added to an empty set. This could result in multiple watcher threads, which is fixed by a proper check for running watchers.
Diffstat (limited to 'src/libcharon/plugins/kernel_wfp/kernel_wfp_ipsec.c')
0 files changed, 0 insertions, 0 deletions