From 5a714b61c46998949dcb3149b77e04f7f57cb17e Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sun, 9 Apr 2023 20:55:52 +0200 Subject: [PATCH] geoip: set autoflush on stdout stderr is _IONBF by default on linux-glibc, but stdout only _IOLBF. The progress updates do not use newline, so stdout needs to be switched to _IONBF to appear in a timely fashion. --- geoip/xt_geoip_build | 1 + geoip/xt_geoip_build_maxmind | 1 + 2 files changed, 2 insertions(+) diff --git a/geoip/xt_geoip_build b/geoip/xt_geoip_build index 74a16e8..16e1052 100755 --- a/geoip/xt_geoip_build +++ b/geoip/xt_geoip_build @@ -11,6 +11,7 @@ use Socket qw(AF_INET AF_INET6 inet_pton); use warnings; use Text::CSV_XS; # or trade for Text::CSV use strict; +$| = 1; my $csv = Text::CSV_XS->new({ allow_whitespace => 1, diff --git a/geoip/xt_geoip_build_maxmind b/geoip/xt_geoip_build_maxmind index 05a726c..5fbdab6 100755 --- a/geoip/xt_geoip_build_maxmind +++ b/geoip/xt_geoip_build_maxmind @@ -10,6 +10,7 @@ use Socket qw(AF_INET AF_INET6 inet_pton); use warnings; use Text::CSV_XS; # or trade for Text::CSV use strict; +$| = 1; my $csv = Text::CSV_XS->new({ allow_whitespace => 1, -- 2.47.2