1 From e1320c1da52ca92aa68b4224f9532982184fbe00 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?J=C3=A9r=C3=B4me?= <jerome@jolimont.fr>
3 Date: Thu, 7 Feb 2013 12:54:53 +0100
4 Subject: [PATCH] also catch SIGTERM for stopping the beep
6 Signed-off-by: Gerfried Fuchs <rhonda@deb.at>
9 1 file changed, 2 insertions(+)
11 diff --git a/beep.c b/beep.c
12 index 452fc08..9cb63bf 100644
15 @@ -130,6 +130,7 @@ void handle_signal(int signum) {
21 /* Kill the sound, quit gracefully */
23 @@ -324,6 +325,7 @@ int main(int argc, char **argv) {
26 signal(SIGINT, handle_signal);
27 + signal(SIGTERM, handle_signal);
28 parse_command_line(argc, argv, parms);
30 /* this outermost while loop handles the possibility that -n/--new has been