Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.zx2c4.com/cgit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Keeping <john@keeping.me.uk>2017-04-24 21:38:34 +0300
committerJohn Keeping <john@keeping.me.uk>2017-10-03 21:19:34 +0300
commit3b485cc5422f800d142c7023295e82c0a1c10b19 (patch)
treec5c46cdf02c2cff650cc15342c3a5ced861c912c /ui-blob.c
parentde297883385030f4bdcd2f5c3839d1187611b949 (diff)
cache: flush stdio before restoring FDs
As described in commit 2efb59e (ui-patch: Flush stdout after outputting data, 2014-06-11), we need to ensure that stdout is flushed before restoring the file descriptor when writing to the cache. It turns out that it's not just ui-patch that is affected by this but also raw diff which writes to stdout internally. Let's avoid risking more places doing this by ensuring that stdout is flushed after writing in fill_slot(). Signed-off-by: John Keeping <john@keeping.me.uk>
Diffstat (limited to 'ui-blob.c')
0 files changed, 0 insertions, 0 deletions