watcher: Rebuild fdset when select() fails
authorMartin Willi <martin@revosec.ch>
Thu, 24 Oct 2013 13:07:43 +0000 (15:07 +0200)
committerMartin Willi <martin@revosec.ch>
Thu, 24 Oct 2013 13:37:20 +0000 (15:37 +0200)
commit5ce3c9b15a5754498340abc6589f98629a995776
tree1d1984a099720fbf226cbec1ef2f436fe589d6c4
parent1a20a22d0985120ada7a9010b51bd91b8d98a06d
watcher: Rebuild fdset when select() fails

This should make sure we refresh the fdset if a user closes an FD it just
removed. Some selects() seem to complain about the bad FD before signaling the
notification pipe.
src/libstrongswan/processing/watcher.c