[Apt-listbugs-commits] [apt-listbugs] 01/01: exit successfully on SIGUSR1 (Closes: #273565)

Francesco Poli frx-guest at moszumanska.debian.org
Tue Jun 17 20:43:31 UTC 2014


This is an automated email from the git hooks/post-receive script.

frx-guest pushed a commit to branch master
in repository apt-listbugs.

commit dbe3349f7c08601147d882b1f0413934e9ae98fe
Author: Francesco Poli (wintermute) <invernomuto at paranoici.org>
Date:   Tue Jun 17 22:41:02 2014 +0200

    exit successfully on SIGUSR1 (Closes: #273565)
---
 apt-listbugs     | 7 ++++++-
 debian/changelog | 4 ++++
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/apt-listbugs b/apt-listbugs
index 04e1cd9..dc97d33 100755
--- a/apt-listbugs
+++ b/apt-listbugs
@@ -260,7 +260,9 @@ notable configuration options are
 : 0
 
   If the program ran successfully and (when in apt mode) you decided
-  to continue with the installation/upgrade.
+  to continue with the installation/upgrade. Or otherwise, if a SIGUSR1
+  was received (for instance because you issued the command "killall
+  -USR1 apt-listbugs").
 
 : 1
 
@@ -302,6 +304,9 @@ apt.conf(5), sensible-browser(1), www-browser(1), querybts(1)
 # exit gracefully when user presses [Ctrl+C]
 Signal.trap("SIGINT") { $stderr.puts "Interrupted"; exit 130 }
 
+# exit successfully when SIGUSR1 is received
+Signal.trap("SIGUSR1") { $stderr.puts "Emergency exit"; exit! 0 }
+
 
 if File.expand_path(__FILE__).match(/^\/usr\/s?bin\//)
   $LOAD_PATH.unshift("/usr/share/apt-listbugs")
diff --git a/debian/changelog b/debian/changelog
index 1628cc8..a3163ff 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -11,6 +11,10 @@ apt-listbugs (0.1.14) UNRELEASED; urgency=medium
   * enhanced error handling (also catch Errno::EBADF in apt mode)
   * added a dependency on ruby-unicode to correctly compute the width
     of asterisk headers and of output to be updated
+  * fixed "Please provide a way to stop the querying of bug reports when
+    there are a lot of them.": it is now possible to make apt-listbugs
+    exit immediately (and successfully) by sending it a SIGUSR1, for
+    instance with the command "killall -USR1 apt-listbugs" (Closes: #273565)
 
  -- Francesco Poli (wintermute) <invernomuto at paranoici.org>  Sun, 11 May 2014 16:45:18 +0200
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/apt-listbugs/apt-listbugs.git



More information about the Apt-listbugs-commits mailing list