From mboxrd@z Thu Jan 1 00:00:00 1970 From: mricon at kernel.org (Konstantin Ryabitsev) Date: Wed, 11 Jun 2014 16:28:26 -0400 Subject: [PATCH] ui-patch: Flush stdout after outputting data In-Reply-To: References: <5398B200.2080309@kernel.org> Message-ID: <5398BBEA.8090002@kernel.org> On 11/06/14 04:01 PM, John Keeping wrote: > Since the "html" functions use raw write(2) to STDIO_FILENO, we don't > notice problems with most pages, but raw patches write using printf(3). > This is fine if we're outputting straight to stdout since the buffers > are flushed on exit, but we close the cache output before this, so the > cached output ends up being truncated. > > Make sure the buffers are flushed when we finish outputting a patch so > that we avoid this. > > No other UIs use printf(3) so we do not need to worry about them. Confirming fix -- in production at kernel.org. Thanks a ton for the lightning-speed turnaround. Best, -- Konstantin Ryabitsev Senior Systems Administrator Linux Foundation Collab Projects Montr?al, Qu?bec -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 538 bytes Desc: OpenPGP digital signature URL: