From: Gerfried Fuchs Date: Sun, 10 Jun 2012 09:50:42 +0000 (+0200) Subject: also catch SIGTERM for stopping the beep X-Git-Tag: debian/1.3-3~1 X-Git-Url: https://git.deb.at/?p=pkg%2Fbeep.git;a=commitdiff_plain;h=56749374fd3d713b27872f8cd2a8da39b887de77 also catch SIGTERM for stopping the beep --- diff --git a/debian/changelog b/debian/changelog index ec6badb..ab0b083 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 index 0000000..8db0677 --- /dev/null +++ b/debian/patches/catch-sig-term @@ -0,0 +1,23 @@ +Author: Jérôme +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 diff --git a/debian/patches/series b/debian/patches/series index 1bb8bf6..b3e33f3 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1 @@ -# empty +catch-sig-term