From 784dde73bc2f59108c6f5123b9206851b97afc32 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 31 Jan 2005 04:51:50 +0000 Subject: r5119: fflush after talloc reports to ensure they are fully on disk when using tee (This used to be commit e73e49aaa64f6f976918f087cf196b00eecc3eb2) --- source4/lib/talloc/talloc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source4') diff --git a/source4/lib/talloc/talloc.c b/source4/lib/talloc/talloc.c index f6f7e899d1..291ee5a8bf 100644 --- a/source4/lib/talloc/talloc.c +++ b/source4/lib/talloc/talloc.c @@ -757,6 +757,7 @@ void talloc_report_full(const void *ptr, FILE *f) (unsigned long)talloc_total_blocks(ptr)); talloc_report_depth(ptr, f, 1); + fflush(f); } /* @@ -784,7 +785,7 @@ void talloc_report(const void *ptr, FILE *f) (unsigned long)talloc_total_size(c+1), (unsigned long)talloc_total_blocks(c+1)); } - + fflush(f); } /* -- cgit