diff --git a/shairport.pl b/shairport.pl index 96c1aff4..97285d47 100755 --- a/shairport.pl +++ b/shairport.pl @@ -80,6 +80,7 @@ $SIG{CHLD} = \&REAP; my %conns; $SIG{TERM} = $SIG{INT} = $SIG{__DIE__} = sub { + print "killed\n"; map { eval { kill $_->{decoder_pid} } } keys %conns; kill 9, $avahi_publish; exit(0);