basic C question

Paul Mora paulmora-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Mon Jul 12 19:55:17 UTC 2004


Hi.

Sorry for the triviality of this question, but as long as a process
has a file open, doesn't it have access to it?  Even if the file
reference in the directory has been removed?

I don't think removing a file using "rm" actually removes the file
descriptor.  You're only removing an entry in the directory file that
points to the inode.  The file descriptor is still valid until your
program closes the file.

pm

-- 
Paul Mora
email: paulmora-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list