summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-01-31 04:51:50 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:09:24 -0500
commit784dde73bc2f59108c6f5123b9206851b97afc32 (patch)
treea2e61c6cd7468c204a365d8851f131ba4a9d1598
parentaa985bdee09e222f9f3f1f49e1cc20e0760c6f32 (diff)
downloadsamba-784dde73bc2f59108c6f5123b9206851b97afc32.tar.gz
samba-784dde73bc2f59108c6f5123b9206851b97afc32.tar.bz2
samba-784dde73bc2f59108c6f5123b9206851b97afc32.zip
r5119: fflush after talloc reports to ensure they are fully on disk when using tee
(This used to be commit e73e49aaa64f6f976918f087cf196b00eecc3eb2)
-rw-r--r--source4/lib/talloc/talloc.c3
1 files changed, 2 insertions, 1 deletions
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);
}
/*