]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Enable stdout autoflush in authsock.pl
authorAram Sargsyan <aram@isc.org>
Tue, 21 May 2024 08:45:48 +0000 (08:45 +0000)
committerNicki Křížek <nicki@isc.org>
Wed, 24 Jul 2024 10:15:22 +0000 (12:15 +0200)
With enabled buffering the output gets lost when the process
receives a TERM signal. Disable the buffering.

(cherry picked from commit a0311dfb6e2a51f89dfa8b200b96a0f4675fb654)

bin/tests/system/tsiggss/authsock.pl

index ab3833d26f01762f305ad4223c2b984b2829946a..949c32da1d2b384950911e1874e093cdcea05e32 100644 (file)
@@ -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";