[master] 85a2eec Flush file output on exit

Martin Blix Grydeland martin at varnish-cache.org
Thu Oct 3 14:00:41 CEST 2013


commit 85a2eecf956ed857d4c17b75d6d211fa2f056e66
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date:   Thu Oct 3 13:58:53 2013 +0200

    Flush file output on exit
    
    Make sure to flush the file stream on exit in VUT

diff --git a/lib/libvarnishtools/vut.c b/lib/libvarnishtools/vut.c
index 0d331b8..03127ec 100644
--- a/lib/libvarnishtools/vut.c
+++ b/lib/libvarnishtools/vut.c
@@ -240,6 +240,9 @@ VUT_Fini(void)
 	free(VUT.r_arg);
 	free(VUT.P_arg);
 
+	if (VUT.fo != NULL)
+		fflush(VUT.fo);
+
 	vut_vpf_remove();
 	AZ(VUT.pfh);
 



More information about the varnish-commit mailing list