From: Joerg Bruehe <joerg@sql.de>
Subject: Re: Locked file problem
Date: 2000/10/25 [thread overview]
Message-ID: <39F72A24.9B446C5A@sql.de> (raw)
In-Reply-To: 39F59DB2.BFD6660@kmi-irm.oma.be
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
next prev parent reply other threads:[~2000-10-25 4:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-10-24 4:00 Locked file problem Alessandro Ipe
2000-10-25 4:00 ` Joerg Bruehe [this message]
2000-10-26 1:31 ` Ric Werme
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox