tail: use inotify if it is available
commitae494d4be80df2aff50a2ac46fdc0c23de109ea3
authorGiuseppe Scrivano <gscrivano@gnu.org>
Tue, 2 Jun 2009 06:28:23 +0000 (2 08:28 +0200)
committerJim Meyering <meyering@redhat.com>
Mon, 15 Jun 2009 16:34:14 +0000 (15 18:34 +0200)
treeca567ba9ae1d870b139778df835707eb1e358ee2
parent358aca5fb9cb67c593aa5f1ddf166dbefcf55f0c
tail: use inotify if it is available

* NEWS: Document the new feature.
* m4/jm-macros.m4: Check if inotify is present.
* src/tail.c (tail_forever_inotify): New function.
(main): Use the inotify-based function, if possible.
* tests/Makefile.am: Add new tests for tail.
* tests/test-lib.sh (require_proc_pid_status_, get_process_status_):
New functions.
* tests/tail-2/pid: New file.
* tests/tail-2/wait: New file.
* tests/tail-2/tail-n0f: Refactor code into the test-lib.sh
require_proc_pid_status_ function.
NEWS
m4/jm-macros.m4
src/tail.c
tests/Makefile.am
tests/tail-2/pid [new file with mode: 0755]
tests/tail-2/tail-n0f
tests/tail-2/wait [new file with mode: 0755]
tests/test-lib.sh