]> git.ipfire.org Git - thirdparty/strongswan.git/commit
watcher: Avoid queueing multiple watcher callbacks at the same time
authorMartin Willi <martin@revosec.ch>
Tue, 18 Feb 2014 16:54:34 +0000 (17:54 +0100)
committerMartin Willi <martin@revosec.ch>
Wed, 7 May 2014 12:13:34 +0000 (14:13 +0200)
commitd16d5a245f0b313bed187462e8b06dd9391e2982
tree07ff3562ff3589dd164c27f13878cff0f60d298d
parent874e212f71b86a483445036096b29f0dd81b3ed3
watcher: Avoid queueing multiple watcher callbacks at the same time

While we don't add FDs with an active callback to the watched FDSET, we still
can get notifications for callbacks active due the asynchronous processing
of the same.

To avoid queue multiple callbacks, we check for queued callbacks before
activating new ones.
src/libstrongswan/processing/watcher.c