Jonathan Stowe <gellyf...@gellyfish.com> wrote:
On Mon, 2006-12-18 at 17:52 +0100, Sébastien Aperghis-Tramoni wrote:
Yossi Kreinin wrote:
> * Why didn't rm say they were open?

I'm not sure it can know.

> * And by which process, so I'd know if it's OK to kill it?

As Martin said, lsof(8) and fuser(1) are your friends.

So it can know if it wanted to - don't apologize for the software when
you are supposing to be hating it!

Oh yeah, sure. lsof can take quite a while to run on a big machine. I'd just love rm to slow down by that much for this fringe case.

Or maybe the kernel should maintain an extra hashmap so you can look up processes using a file by filename effeciently?

Oh yes, I'm hating this already.

Cheers,

Martin.

Reply via email to