Changeset: 9fb7b10118dc for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=9fb7b10118dc
Modified Files:
clients/mapiclient/stethoscope.c
Branch: default
Log Message:
Fix handling end of buffer.
Lines not ending with \n could have been skipped,
which creates a corrupted stathoscope trace.
diffs (13 lines):
diff --git a/clients/mapiclient/stethoscope.c b/clients/mapiclient/stethoscope.c
--- a/clients/mapiclient/stethoscope.c
+++ b/clients/mapiclient/stethoscope.c
@@ -302,6 +302,9 @@ doProfile(void *d)
printf("%s%s\n", id, response);
response = e + 1;
}
+ /* handle last line in buffer */
+ if ( *response)
+ printf("%s",response);
if (++i % 200) {
i = 0;
fflush(NULL);
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list