[Lazarus] Finding out how a program's being terminated
Mark Morgan Lloyd
markMLl.lazarus at telemetry.co.uk
Sun Feb 17 10:06:04 CET 2013
waldo kitty wrote:
> On 2/16/2013 08:30, Hans-Peter Diettrich wrote:
>> Procedures even may be different for Linux and Windows, depending on the
>> signal/message types. Even if a program can ignore SIGTERM, can it
>> also inform
>> the system that it doesn't *want* to close? On Windows a program can
>> stop an
>> shutdown, maybe not on other platforms.
>
> i have exactly this problem to deal with on *nix... my app needs to be
> allowed to complete its shutdown closeout procedures or there are
> problems on the next boot when it is started up... on shutdown, app
> managed data is removed from a living data file to another file for
> restoration on startup... this takes longer than 5 seconds and it hurts
> at times when the system sigkills the app :/
/Why/ is it taking longer than five seconds? Are you using the iptables
program to manipulate individual rules, or going directly to the API?
--
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 Lazarus
mailing list