Hi Mathias,

On Wednesday, 2007-01-10 11:44:34 +0100, Mathias Bauer wrote:

> > And IIRC - while the file descriptor is still open, the operating system 
> > (or 
> > at least Linux) does not unlink the file for the process that owns the file 
> > descriptor - but I can be wrong of course.
> That won't help if you try to read something that isn't there anymore
> because the file has been overwritten. The document will quit service.

This is not the case on Unix systems. The kernel will only free the
chain of inodes used by the file when the last reference is released. As
long as at least one process' file handle or directory entry or hard
link references the "file" it doesn't physically vanish.

Which of course doesn't help on other platforms.

  Eike

-- 
 OOo/SO Calc core developer. Number formatter stricken i18n transpositionizer.
 OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
 Please don't send personal mail to the [EMAIL PROTECTED] account, which I use 
for
 mailing lists only and don't read from outside Sun. Thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to