tail: use the inotify backend also with --pid=PID
commite81c4d88c2fce526c02693d539e22c7468dc452b
authorGiuseppe Scrivano <gscrivano@gnu.org>
Sun, 26 Jul 2009 11:22:57 +0000 (26 13:22 +0200)
committerJim Meyering <meyering@redhat.com>
Tue, 28 Jul 2009 07:31:54 +0000 (28 09:31 +0200)
tree1469e28e07dc075cd88da06fd1d7516844af9267
parent5874a8215deb28918a049ba24c4335f7a7fb74e1
tail: use the inotify backend also with --pid=PID

* src/tail.c (tail_forever_inotify): When a PID is specified, use
select to block for no more than sleep_interval seconds at a time,
and check for process death upon timeout.
(main): Adapt to new tail_forever_inotify interface.
src/tail.c