]> git.deb.at Git - pkg/beep.git/commitdiff
also catch SIGTERM for stopping the beep
authorGerfried Fuchs <rhonda@debian.org>
Sun, 10 Jun 2012 09:50:42 +0000 (11:50 +0200)
committerGerfried Fuchs <rhonda@debian.org>
Sun, 10 Jun 2012 09:51:30 +0000 (11:51 +0200)
debian/changelog
debian/patches/catch-sig-term [new file with mode: 0644]
debian/patches/series

index ec6badbf512870290c5da675b75d7334765fd643..ab0b08348ba05325597bd9cc7bdfcb54f7bc2799 100644 (file)
@@ -1,3 +1,10 @@
+beep (1.3-3) unstable; urgency=low
+
+  * Add patch catch-sig-term to also stop the beep when receiving SIGTERM.
+    Thanks to Jérôme for the patch.
+
+ -- 
+
 beep (1.3-2) unstable; urgency=low
 
   * The "l10n R us" release.
diff --git a/debian/patches/catch-sig-term b/debian/patches/catch-sig-term
new file mode 100644 (file)
index 0000000..8db0677
--- /dev/null
@@ -0,0 +1,23 @@
+Author: Jérôme <jerome@jolimont.fr>
+Description: also catch SIGTERM for stopping the beep
+
+Index: VCS/beep.c
+===================================================================
+--- VCS.orig/beep.c    2012-06-10 10:03:39.000000000 +0200
++++ VCS/beep.c 2012-06-10 10:03:59.000000000 +0200
+@@ -127,6 +127,7 @@
+   switch(signum) {
+   case SIGINT:
++  case SIGTERM:
+     if(console_fd >= 0) {
+       /* Kill the sound, quit gracefully */
+       do_beep(0);
+@@ -321,6 +322,7 @@
+   parms->next       = NULL;
+   signal(SIGINT, handle_signal);
++  signal(SIGTERM, handle_signal);
+   parse_command_line(argc, argv, parms);
+   /* this outermost while loop handles the possibility that -n/--new has been
index 1bb8bf6d7fd4c8d09aea89b47de20fb8bbb61626..b3e33f380f74e485b88f4f4776be0d6901622b9b 100644 (file)
@@ -1 +1 @@
-# empty
+catch-sig-term