From 9eea52ef406a5009ef735ca2753a9f78f61e232d Mon Sep 17 00:00:00 2001 From: Werner Sembach Date: Mon, 8 Feb 2021 11:58:16 +0100 Subject: [PATCH 1/2] Fix process not closing on logout --- tuxedo-touchpad-switch.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tuxedo-touchpad-switch.cpp b/tuxedo-touchpad-switch.cpp index 6ada49c..4926181 100644 --- a/tuxedo-touchpad-switch.cpp +++ b/tuxedo-touchpad-switch.cpp @@ -79,6 +79,10 @@ int main() { cerr << "main(...): sigaction(...) failed." << endl; gracefull_exit(-EXIT_FAILURE); } + if (sigaction(SIGHUP, &sigaction_gracefull_exit, nullptr)) { + cerr << "main(...): sigaction(...) failed." << endl; + gracefull_exit(-EXIT_FAILURE); + } lockfile = open("/etc/tuxedo-touchpad-switch-lockfile", O_RDONLY); if (lockfile == -1) { From 3f90c9c6c1e51f6d8538877d2f15677ce39b167b Mon Sep 17 00:00:00 2001 From: Werner Sembach Date: Mon, 8 Feb 2021 12:03:15 +0100 Subject: [PATCH 2/2] Update changelog --- debian/changelog | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/debian/changelog b/debian/changelog index 0591e28..eff350c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +tuxedo-touchpad-switch (1.0.1) focal; urgency=medium + + * Fix process not closing on logout + + -- Werner Sembach Mon, 08 Feb 2021 12:01:42 +0100 + tuxedo-touchpad-switch (1.0.0) focal; urgency=medium * Update ReadMe.md