(inotify_fd): New variable.
authordrepper <drepper>
Thu, 12 Jun 2008 22:39:35 +0000 (22:39 +0000)
committerdrepper <drepper>
Thu, 12 Jun 2008 22:39:35 +0000 (22:39 +0000)
commit53adb1d8968d3b446624c886a99332642b4f317b
tree48cfb72a649a8cccf7b0b48ab2b4ef003ea17f79
parentb48f1d69269c45b6eaf13278bd8865c1a6d60f3c
(inotify_fd): New variable.
(nscd_init): Try to open an inotify descriptor.
If successful, watch files for databases using inotify instead of
having prune threads stat the files.
(nscd_run_prune): Recognize clear_cache flag being set and call
prune_cache appropriately.
(main_loop_poll): Add inotify descriptor to wait set and handle the
reported changes.
(main_loop_epoll): Likewise.
nscd/connections.c