Re: Does inotify work with special files such as /proc/<pid>/task/<tid>/children?

From: Al Viro
Date: Sun Sep 28 2014 - 19:12:47 EST


On Sun, Sep 28, 2014 at 11:09:50PM +0000, Steven Stewart-Gallus wrote:
> Hello,
>
> I can't seem to get inotify to work with special files such as
> /proc/<pid>/task/<tid>/children? I just need to get a simple yes/no
> answer on whether it works for special files or whether I have to try
> a different approach.

Simple answer: No. Slightly more expanded one: No, and it won't.
Inotify does not work on procfs, sysfs, etc. Doesn't work on
network filesystems either. Don't use it. It was a mistake in the
first place.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/