do cleanup (e.g. kill dns-sd) also for $SIG{__DIE__}
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user