Date: Fri, 05 Sep 2003 00:37:03 -0700 From: Terry Lambert <tlambert2@mindspring.com> To: Paul Richards <paul@inty.com> Cc: current@freebsd.org Subject: Re: Text file busy Message-ID: <3F583D1F.1F8E5B8C@mindspring.com> References: <1062686653.67807.77.camel@localhost>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F583D1F.1F8E5B8C>