# HG changeset patch # User Heiko Schlittermann # Date 1466518690 -7200 # Node ID 744983a363380f883d26486cf6c3da6198e0336d # Parent 307dbb1d05a5a3327c09db2b50051eb06bfeaafc Add comment on our diff -r 307dbb1d05a5 -r 744983a36338 lib/Nagios/Check/DNS/check_tlsa_record.pm --- a/lib/Nagios/Check/DNS/check_tlsa_record.pm Tue Jun 21 16:14:56 2016 +0200 +++ b/lib/Nagios/Check/DNS/check_tlsa_record.pm Tue Jun 21 16:18:10 2016 +0200 @@ -17,6 +17,8 @@ my $dane_pattern = qr'^(?(?\d+)\s+(?\d+)\s+(?\d+)\s+(?[0-9a-f ]+))$'; my $with_cname = qr'^(?[_a-z]+.*\n).*'; +# keep in in 'our' to avoid garbage collection and destruction +# of the File::Temp object our $tmpfile = File::Temp->new(); my $fdname = '/dev/fd/' . fileno $tmpfile; fcntl($tmpfile, F_SETFD, fcntl($tmpfile, F_GETFD, 0) & ~FD_CLOEXEC)