]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commit
guardian: Use Inotify for detecting file modifications.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sun, 12 Oct 2014 11:15:08 +0000 (13:15 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sun, 12 Oct 2014 11:15:08 +0000 (13:15 +0200)
commitcf032bf4050c2f2a67363f1f4129012a41851be7
tree2d79536e05d4a46027081b086f528d13c4e0814c
parent70f2f13d240b897f7241a2ab364fab122d852e2a
guardian: Use Inotify for detecting file modifications.

If a monitored file gets modified, guardian now recognizes this by
using the inotify interface provided from the Linux kernel and stores
this information in a processing queue.

This is a more efficent way than the old one, which periodly checked if the
filesize had been changed.

Also doing some more code cleanup and add input validation.
config/guardian/guardian.pl