From: Aram Sargsyan Date: Tue, 21 May 2024 08:45:48 +0000 (+0000) Subject: Enable stdout autoflush in authsock.pl X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=daa96442c46294d863654b0e6532802c7aef8550;p=thirdparty%2Fbind9.git Enable stdout autoflush in authsock.pl With enabled buffering the output gets lost when the process receives a TERM signal. Disable the buffering. (cherry picked from commit a0311dfb6e2a51f89dfa8b200b96a0f4675fb654) --- diff --git a/bin/tests/system/tsiggss/authsock.pl b/bin/tests/system/tsiggss/authsock.pl index ab3833d26f0..949c32da1d2 100644 --- a/bin/tests/system/tsiggss/authsock.pl +++ b/bin/tests/system/tsiggss/authsock.pl @@ -31,6 +31,10 @@ if (!defined($path)) { exit(1); } +# Enable output autoflush so that it's not lost when the parent sends TERM. +select STDOUT; +$| = 1; + unlink($path); my $server = IO::Socket::UNIX->new(Local => $path, Type => SOCK_STREAM, Listen => 8) or die "unable to create socket $path";