All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tony Asleson <tasleson@sourceware.org>
To: lvm-devel@redhat.com
Subject: main - lvmdbusd: Register for SIGTERM
Date: Tue, 20 Sep 2022 21:38:11 +0000 (GMT)	[thread overview]
Message-ID: <20220920213811.6BDA63858C2F@sourceware.org> (raw)

Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=9c2ed7422105c59446c4d8a894c87feb37c5de7a
Commit:        9c2ed7422105c59446c4d8a894c87feb37c5de7a
Parent:        d88998f5163f84aa7305edfeb9ec51dc5b0c6733
Author:        Tony Asleson <tasleson@redhat.com>
AuthorDate:    Tue Sep 20 14:28:57 2022 -0500
Committer:     Tony Asleson <tasleson@redhat.com>
CommitterDate: Tue Sep 20 16:37:01 2022 -0500

lvmdbusd: Register for SIGTERM

Ensure we log that we are exiting on this signal too.
---
 daemons/lvmdbusd/main.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/daemons/lvmdbusd/main.py b/daemons/lvmdbusd/main.py
index ac309aa69..e4531526c 100644
--- a/daemons/lvmdbusd/main.py
+++ b/daemons/lvmdbusd/main.py
@@ -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.SIGUSR1, utils.handler, signal.SIGUSR1)
 		signal_add(GLib.PRIORITY_HIGH, signal.SIGUSR2, utils.handler, signal.SIGUSR2)
+		signal_add(GLib.PRIORITY_HIGH, signal.SIGTERM, utils.handler, signal.SIGTERM)
 	else:
 		log_error("GLib.unix_signal_[add|add_full] are NOT available!")
 


                 reply	other threads:[~2022-09-20 21:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220920213811.6BDA63858C2F@sourceware.org \
    --to=tasleson@sourceware.org \
    --cc=lvm-devel@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.