From 0c82247dff9a75946bd442bf57bd7c994ad4491d Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Mon, 12 Mar 2018 20:29:14 -0400 Subject: Bug 1445098 - flush stdout on cereal daemon --- scripts/cereal.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'scripts/cereal.pl') 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; -- cgit v1.2.3-24-g4f1b