summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2018-03-13 01:29:14 +0100
committerGitHub <noreply@github.com>2018-03-13 01:29:14 +0100
commit0c82247dff9a75946bd442bf57bd7c994ad4491d (patch)
tree47195f96bfc87e421114cfe348394c9aabd17a6b
parenteb43100faf2350b815d3a1e840e7aa0285b9bd76 (diff)
downloadbugzilla-0c82247dff9a75946bd442bf57bd7c994ad4491d.tar.gz
bugzilla-0c82247dff9a75946bd442bf57bd7c994ad4491d.tar.xz
Bug 1445098 - flush stdout on cereal daemon
-rwxr-xr-xscripts/cereal.pl5
1 files changed, 4 insertions, 1 deletions
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;