Changeset: a1b942b5c93b for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=a1b942b5c93b
Modified Files:
monetdb5/mal/mal_profiler.c
Branch: Jan2014
Log Message:
Don't close stream that isn't yours to close.
When starting the profiler on "console", don't close and destroy the
stream when stopping the profiler.
diffs (12 lines):
diff --git a/monetdb5/mal/mal_profiler.c b/monetdb5/mal/mal_profiler.c
--- a/monetdb5/mal/mal_profiler.c
+++ b/monetdb5/mal/mal_profiler.c
@@ -599,7 +599,7 @@ openProfilerStream(stream *fd)
str
closeProfilerStream(void)
{
- if (eventstream && eventstream != GDKout && eventstream != GDKerr) {
+ if (eventstream && eventstream != mal_clients[0].fdout && eventstream
!= GDKout && eventstream != GDKerr) {
(void)mnstr_close(eventstream);
(void)mnstr_destroy(eventstream);
}
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list