Changeset: 7f1d8af451e8 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=7f1d8af451e8
Modified Files:
clients/mapiclient/stethoscope.c
Branch: profiler
Log Message:
Flush stdout after every JSON object
diffs (18 lines):
diff --git a/clients/mapiclient/stethoscope.c b/clients/mapiclient/stethoscope.c
--- a/clients/mapiclient/stethoscope.c
+++ b/clients/mapiclient/stethoscope.c
@@ -342,10 +342,12 @@ main(int argc, char **argv)
buffer[len + n] = 0;
response = buffer;
if(json) {
- if(trace != NULL)
+ if(trace != NULL) {
fprintf(trace, "%s", response);
- else
+ } else {
printf("%s", response);
+ fflush(stdout);
+ }
}
while ((e = strchr(response, '\n')) != NULL) {
*e = 0;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list