Author: Armin Rigo <[email protected]>
Branch:
Changeset: r91055:b13b7c8e4fe7
Date: 2017-04-14 16:05 +0200
http://bitbucket.org/pypy/pypy/changeset/b13b7c8e4fe7/
Log: Call fflush() after writing an end-of-section to the log file.
Hopefully, this should remove the constant problem that log files
are truncated when we track JIT bugs.
diff --git a/rpython/translator/c/src/debug_print.c
b/rpython/translator/c/src/debug_print.c
--- a/rpython/translator/c/src/debug_print.c
+++ b/rpython/translator/c/src/debug_print.c
@@ -235,7 +235,10 @@
void pypy_debug_stop(const char *category)
{
if (debug_profile | (pypy_have_debug_prints & 1))
- display_startstop("", "}", category, debug_start_colors_2);
+ {
+ display_startstop("", "}", category, debug_start_colors_2);
+ fflush(pypy_debug_file);
+ }
pypy_have_debug_prints >>= 1;
}
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit