]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1445098 - flush stdout on cereal daemon
authorDylan William Hardison <dylan@hardison.net>
Tue, 13 Mar 2018 00:29:14 +0000 (20:29 -0400)
committerGitHub <noreply@github.com>
Tue, 13 Mar 2018 00:29:14 +0000 (20:29 -0400)
scripts/cereal.pl

index d5b55645104db325a822a8d674e16988bac6b103..bc4d8abd4ae0d17f00cf90856e79ddbbf4002700 100755 (executable)
@@ -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;