diff --git a/shairport.pl b/shairport.pl index 74ed7a05..63c29e32 100755 --- a/shairport.pl +++ b/shairport.pl @@ -85,7 +85,7 @@ $SIG{CHLD} = \&REAP; my %conns; -$SIG{TERM} = $SIG{INT} = sub { +$SIG{TERM} = $SIG{INT} = $SIG{__DIE__} = sub { print "killed\n"; map { eval { kill $_->{decoder_pid} } } keys %conns; kill 9, $avahi_publish;