[Lazarus] Finding out how a program's being terminated
waldo kitty
wkitty42 at windstream.net
Sat Feb 16 18:27:25 CET 2013
On 2/16/2013 05:26, Sven Barth wrote:
> The reason for this "first TERM then KILL" approach is that an application could
> either hang (and thus not respond correctly to TERM if it has hooked it) or it
> could just ignore the TERM. So on shutdown the init system normally sends a TERM
> to all processes first and gives them a chance to cleanup any data they might
> want to save and then those applications that are left are killed.
what can be done if it takes more than 5 seconds to perform the cleanup and
closeout process when sigterm is received??
More information about the Lazarus
mailing list