mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
lvmdbusd: Register for SIGTERM
Ensure we log that we are exiting on this signal too.
This commit is contained in:
parent
d88998f516
commit
9c2ed74221
@ -80,6 +80,7 @@ def install_signal_handlers():
|
|||||||
signal_add(GLib.PRIORITY_HIGH, signal.SIGINT, utils.handler, signal.SIGINT)
|
signal_add(GLib.PRIORITY_HIGH, signal.SIGINT, utils.handler, signal.SIGINT)
|
||||||
signal_add(GLib.PRIORITY_HIGH, signal.SIGUSR1, utils.handler, signal.SIGUSR1)
|
signal_add(GLib.PRIORITY_HIGH, signal.SIGUSR1, utils.handler, signal.SIGUSR1)
|
||||||
signal_add(GLib.PRIORITY_HIGH, signal.SIGUSR2, utils.handler, signal.SIGUSR2)
|
signal_add(GLib.PRIORITY_HIGH, signal.SIGUSR2, utils.handler, signal.SIGUSR2)
|
||||||
|
signal_add(GLib.PRIORITY_HIGH, signal.SIGTERM, utils.handler, signal.SIGTERM)
|
||||||
else:
|
else:
|
||||||
log_error("GLib.unix_signal_[add|add_full] are NOT available!")
|
log_error("GLib.unix_signal_[add|add_full] are NOT available!")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user