public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Does inotify work with special files such as /proc/<pid>/task/<tid>/children?
@ 2014-09-28 23:09 Steven Stewart-Gallus
  2014-09-28 23:12 ` Al Viro
  0 siblings, 1 reply; 3+ messages in thread
From: Steven Stewart-Gallus @ 2014-09-28 23:09 UTC (permalink / raw)
  To: linux-kernel

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.

Thank you,
Steven Stewart-Gallus

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Does inotify work with special files such as /proc/<pid>/task/<tid>/children?
  2014-09-28 23:09 Does inotify work with special files such as /proc/<pid>/task/<tid>/children? Steven Stewart-Gallus
@ 2014-09-28 23:12 ` Al Viro
  2014-09-29  0:44   ` Chuck Ebbert
  0 siblings, 1 reply; 3+ messages in thread
From: Al Viro @ 2014-09-28 23:12 UTC (permalink / raw)
  To: Steven Stewart-Gallus; +Cc: linux-kernel

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Does inotify work with special files such as /proc/<pid>/task/<tid>/children?
  2014-09-28 23:12 ` Al Viro
@ 2014-09-29  0:44   ` Chuck Ebbert
  0 siblings, 0 replies; 3+ messages in thread
From: Chuck Ebbert @ 2014-09-29  0:44 UTC (permalink / raw)
  To: Al Viro; +Cc: Steven Stewart-Gallus, linux-kernel

On Mon, 29 Sep 2014 00:12:40 +0100
Al Viro <viro@ZenIV.linux.org.uk> wrote:

> 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.

Why was inotify a mistake? Was it badly implemented, or is the whole
concept of userspace being able to monitor filesystem changes
basically impossible to do correctly?

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-09-29  0:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-28 23:09 Does inotify work with special files such as /proc/<pid>/task/<tid>/children? Steven Stewart-Gallus
2014-09-28 23:12 ` Al Viro
2014-09-29  0:44   ` Chuck Ebbert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox