summarylogtreecommitdiffstats
path: root/benny-hill
diff options
context:
space:
mode:
Diffstat (limited to 'benny-hill')
-rwxr-xr-xbenny-hill3
1 files changed, 1 insertions, 2 deletions
diff --git a/benny-hill b/benny-hill
index 81b608ad281a..5946af25cd3c 100755
--- a/benny-hill
+++ b/benny-hill
@@ -1,5 +1,4 @@
#!/bin/bash
-trap "exit" INT TERM
-trap "kill 0" EXIT
+trap '[ -n "$(jobs -pr)" ] && kill $(jobs -pr)' SIGINT SIGQUIT SIGTERM EXIT
play -q /opt/benny-hill/benny-hill.mp3 repeat - &
"$@"