Disable buffering on the postp pre-filter; was causing a delay in postp updating properties for diagnostic output, and preventing scripts from detecting failure conditions correctly.

#lockdown Nick.Penwarden
#codereview Mike.Beach

[CL 2867893 by Ben Marsh in Main branch]
This commit is contained in:
Ben Marsh
2016-02-15 18:14:08 -05:00
committed by Ben.Marsh@epicgames.com
parent 610ceb8a5f
commit 1bbff1bf2a

View File

@@ -1,5 +1,13 @@
#!/usr/bin/env perl
# make sure we don't buffer postp, otherwise we won't be able to read the list of warnings and errors back in for failure emails
my $previous_handle = select(STDOUT);
$| = 1;
select(STDERR);
$| = 1;
select($previous_handle);
# read everything from stdin
while(<>)
{
# remove timestamps added by gubp