]> 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>
Mon, 10 Jun 2024 17:02:52 +0000 (19:02 +0200)
With enabled buffering the output gets lost when the process
receives a TERM signal. Disable the buffering.

bin/tests/system/tsiggss/authsock.pl

index 4c76bf8d56362430d136a6d4f721ecf64122f92c..103d3b0be273fafeebe286d418e55d54c7462106 100644 (file)
@@ -33,6 +33,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";