[fpc-pascal] Methods for autoupdating fpc programs?
Mark Morgan Lloyd
markMLl.fpc-pascal at telemetry.co.uk
Sun Oct 4 15:41:45 CEST 2015
Michael Van Canneyt wrote:
> On Sun, 4 Oct 2015, Graeme Geldenhuys wrote:
>
>> On 2015-10-04 13:16, Mattias Gaertner wrote:
>>> Replacing a running program by simply copying can result under Linux in
>>> 'text file busy'.
>>
>> Then consider me luckily. :) In my 15 years of using Linux and 4 years
>> of FreeBSD I have never seen that error.
>
> I see it nearly every day, when I recompile a fastcgi process that is
> still in use by Apache.
>
> But I was also surprised to see it. I'm still not sure what the exact
> cause is, because it works sometimes, and sometimes not.
It generally happens if the OS (almost any OS) decides that constrained
resources means that a segment can usefully be removed from memory, and
further decides that it's a read-only segment so rather than writing it
to swap it will- if it needs it again- reread it from the original binary.
--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk
[Opinions above are the author's, not those of his employers or colleagues]
More information about the fpc-pascal
mailing list