How determine if a file is opened by another process
Mathias Koerber
koerberm at nixsin.UUCP
Mon Jan 28 12:40:21 AEST 1991
Cheers,
I want to find out, whether any process has opened a file, of which I only
have the filename (or the inode, and the fs). The process that might have
opened it need not be related to mine. I want to find out whether I can
delete the file, without creating a still existing, unref'd file, which might
grow without me knowing which file it is. I looked through inode.h and ino.h,
but found no pointer to this.
Could anyone pls give me a hint ?. Maybe it's in a table in the kernel ?
thx, Mathias
--
Mathias Koerber | S iemens | EUnet: koerber.sin at nixdorf.de
2 Kallang Sector | N ixdorf | USA: koerber.sin at nixdorf.com
S'pore 1344 | I nformation Systems | Tel: +65/7402852 | Fax: +65/7402834
* Packed with Power, SNIckers really satisfy (or do they? Ask them gals :-) )*
More information about the Comp.unix.questions
mailing list