Re: Text file busy

From: Terry Lambert <tlambert2_at_mindspring.com>
Date: Fri, 05 Sep 2003 00:37:03 -0700
Paul Richards wrote:
> Overwriting a file that's currently executing results in a "Text file
> busy" error.
> 
> When did this start happening?
> 
> This was something that was fixed way back on FreeBSD but it seems to be
> a problem again.

You are opening an existing file for write.  You need to rename
on top of it, or delete and create a new one, and this will not
happen.

The issue is that the pages in the executing file are not
necessarily all in core, so it can't copy-on-write them, since
it doesn't know that they are being dirtied.

The copy-on-write behaviour is relatively new; old System V
and Xenix system did not permit even deleting an executing
file, since the process did not hold an open file reference
on the file.

-- Terry
Received on Thu Sep 04 2003 - 22:38:05 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:21 UTC