On 2/17/2013 04:06, Mark Morgan Lloyd wrote:
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?
because there may be several thousand rules to save, for one thing... other than
that, i can't go into any more of the specifics because it is too far afield
from pascal and/or lazarus... i was only interested in if there was a solution
to delay shutdown until a process has actually completed its shutdown tasks...
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus