[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: inotify back end for tail -f on linux

From: Jim Meyering
Subject: Re: inotify back end for tail -f on linux
Date: Sat, 06 Jun 2009 12:21:22 +0200

Giuseppe Scrivano wrote:
> I found another problem.  The inotify version can't be used when --pid
> is specified.  There are other inotify events that I want to investigate
> better if they can be used with --pid and in this case we can add them
> later when the inotify back end is stable enough for me to break it
> again :)  What do you think?

Actually, there may be a nice way to allow --pid=PID to
integrate seamlessly with inotify support.

I think you can add an IN_DELETE_SELF inotify watch on the "/proc/PID"
directory.  I suspect that every system with inotify support also
has usable /proc/PID directories.  The only requirement seems to be
that the desired directory be readable.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]