basic C question

Paul Mora paulmora-Re5JQEeQqe8AvxtiuMwx3w at
Mon Jul 12 19:55:17 UTC 2004


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.


Paul Mora
email: paulmora-Re5JQEeQqe8AvxtiuMwx3w at
The Toronto Linux Users Group.      Meetings:
TLUG requests: Linux topics, No HTML, wrap text below 80 columns

More information about the Legacy mailing list