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

Re: Bug#661575: lsof on Hurd



Nicholas Bamber, le Wed 25 Apr 2012 00:53:59 +0100, a écrit :
> That actually rings a bell from some other Hurd issue. Isn't there some bit
> of purest thinking that we have no right to assume that a file descripter
> actually implies a physical file, hence the question just cannot be asked.

There is sense in that, yes.  That can also happen on Linux actually,
when the file is removed.

The best you can have is what path was used to open it.  In the Hurd,
only the process itself knows.

> If that is so then the best Hurd might ever be able to offer lsof is the
> current /proc file system.

The process can be asked for the path.  It just has to avoid throwing it
away after opening it, and define an interface to fetch it.

Samuel


Reply to: