From: Dylan William Hardison Date: Tue, 13 Mar 2018 00:29:14 +0000 (-0400) Subject: Bug 1445098 - flush stdout on cereal daemon X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c82247dff9a75946bd442bf57bd7c994ad4491d;p=thirdparty%2Fbugzilla.git Bug 1445098 - flush stdout on cereal daemon --- diff --git a/scripts/cereal.pl b/scripts/cereal.pl index d5b556451..bc4d8abd4 100755 --- a/scripts/cereal.pl +++ b/scripts/cereal.pl @@ -22,9 +22,12 @@ use Bugzilla::DaemonControl qw(catch_signal); use Future; use IO::Async::Loop; use IO::Async::Protocol::LineStream; +use IO::Handle; $ENV{LOGGING_PORT} //= 5880; +STDOUT->autoflush(1); + my $loop = IO::Async::Loop->new; my $on_stream = sub { my ($stream) = @_; @@ -46,4 +49,4 @@ $loop->listen( on_stream => $on_stream, )->get; -exit Future->wait_any(map { catch_signal($_, 0) } @signals)->get; \ No newline at end of file +exit Future->wait_any(map { catch_signal($_, 0) } @signals)->get;