From: Jan Engelhardt Date: Sun, 9 Apr 2023 18:55:52 +0000 (+0200) Subject: geoip: set autoflush on stdout X-Git-Tag: v3.24~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a714b61c46998949dcb3149b77e04f7f57cb17e;p=thirdparty%2Fxtables-addons.git 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. --- 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,