From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,2bfe3ba7106e5df6 X-Google-Attributes: gidfa528,public From: Joerg Bruehe Subject: Re: Locked file problem Date: 2000/10/25 Message-ID: <39F72A24.9B446C5A@sql.de>#1/1 X-Deja-AN: 685964198 Content-Transfer-Encoding: 7bit References: <39F59DB2.BFD6660@kmi-irm.oma.be> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: news@news.sql.de X-Trace: news.sql.de 972499492 37 194.64.230.128 (25 Oct 2000 18:44:52 GMT) Organization: SQL Datenbanksysteme GmbH Mime-Version: 1.0 NNTP-Posting-Date: 25 Oct 2000 18:44:52 GMT Newsgroups: comp.unix.tru64 Hi Alessandro ! Alessandro Ipe wrote: > > [...] > When I am executing a home-made program (in C, for example) and, during its execution, I am trying > to recompile it, the compiler is failing to overwrite the old executable with the newly created > one. I presume there is a mechanism in the OS preventing this to append, like a sort of file > locking during execution... However, is it possible to permanently disable this option ? This is a general Unix feature. AFAIK, the reason is that the OS will fetch code pages for the running process from the program file, so that file must not be changed while the process is running. If you really want to produce a new executable while the old one is still running, you should rename the program file. You might also delete it (= still on disk, but not reachable by name). HTH, Joerg Bruehe -- Joerg Bruehe, SQL Datenbanksysteme GmbH, Berlin, Germany (speaking only for himself) mailto: joerg@sql.de