Rework handling of monitored files.
authorStefan Schantl <stefan.schantl@ipfire.org>
Wed, 25 Nov 2015 08:07:55 +0000 (09:07 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Wed, 25 Nov 2015 08:07:55 +0000 (09:07 +0100)
commit3111df627870b496ce35c30192098db316a64da4
tree89f3fe0263d26d3ca0fc214ec6e6c48d2e6e4a4a
parentf7821b2361477128f27c8ff6838b47893b4482be
Rework handling of monitored files.

From now a hash is used to store which files should be monitored
and to store their current cursor position. The entire hash is shared
between the main process and the worker threads.

A benefit of this is, to keep the current cursor position of each monitored file
during thread restarts and the hash is also designed to be re-generated in case of
a service reload without loosing any relevant data.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
guardian