do cleanup (e.g. kill dns-sd) also for $SIG{__DIE__}

This commit is contained in:
Albert Zeyer
2011-04-11 19:57:53 +02:00
parent 4ae23cf50d
commit f72d219ad0
+1 -1
View File
@@ -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;