Changeset: 515f4267aa0a for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=515f4267aa0a
Modified Files:
gdk/gdk_utils.c
Branch: Feb2013
Log Message:
Send debug output to stderr.
diffs (25 lines):
diff --git a/gdk/gdk_utils.c b/gdk/gdk_utils.c
--- a/gdk/gdk_utils.c
+++ b/gdk/gdk_utils.c
@@ -1626,8 +1626,8 @@ THRnew(str name)
s->data[0] = THRdata[0];
s->sp = THRsp();
- PARDEBUG THRprintf(GDKstdout, "#%x " SZFMT " sp = " SZFMT "\n",
s->tid, (size_t) pid, s->sp);
- PARDEBUG THRprintf(GDKstdout, "#nrofthreads %d\n",
GDKnrofthreads);
+ PARDEBUG fprintf(stderr, "#%x " SZFMT " sp = " SZFMT "\n",
s->tid, (size_t) pid, s->sp);
+ PARDEBUG fprintf(stderr, "#nrofthreads %d\n", GDKnrofthreads);
GDKnrofthreads++;
}
@@ -1644,9 +1644,7 @@ THRdel(Thread t)
GDKfatal("THRdel: illegal call\n");
}
MT_lock_set(&GDKthreadLock, "THRdel");
-/* The stream may haven been closed (e.g. in freeClient) causing an abort
- PARDEBUG THRprintf(GDKstdout, "#pid = " SZFMT ", disconnected, %d
left\n", (size_t) t->pid, GDKnrofthreads);
-*/
+ PARDEBUG fprintf(stderr, "#pid = " SZFMT ", disconnected, %d left\n",
(size_t) t->pid, GDKnrofthreads);
t->pid = 0;
GDKnrofthreads--;
_______________________________________________
checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list