|
|
Subscribe / Log in / New account

Distributors ponder a systemd change

Distributors ponder a systemd change

Posted Jun 8, 2016 14:29 UTC (Wed) by paulj (subscriber, #341)
In reply to: Distributors ponder a systemd change by matthias
Parent article: Distributors ponder a systemd change

So many processes trap shutdown to do cleanup, but cleanup may fail.

Pray tell, how does the systemd change to just kill them outright help with that?


to post comments

Distributors ponder a systemd change

Posted Jun 8, 2016 15:33 UTC (Wed) by anselm (subscriber, #2796) [Link]

Programs that want to clean up after themselves must already trap SIGTERM (which is the signal that kill(1) and friends send by default). If their cleanup process fails such that they hang or loop rather than exit, or otherwise takes longer than systemd – or for that matter shutdown(8), which follows exactly the same approach as systemd – lets them have, they get bopped on the head with a SIGKILL. This is not exactly breaking new ground.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds