From ae172660fe305f3f44eddacd41b3d3d9a88f7800 Mon Sep 17 00:00:00 2001 From: Michael Starzinger Date: Thu, 18 Oct 2007 16:59:13 +0200 Subject: [PATCH] * src/threads/threads-common.c (threads_dump): Ignore NEW threads while dumping. --- src/threads/threads-common.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/threads/threads-common.c b/src/threads/threads-common.c index 2e8ff22f7..034db137f 100644 --- a/src/threads/threads-common.c +++ b/src/threads/threads-common.c @@ -843,6 +843,10 @@ void threads_dump(void) /* iterate over all started threads */ for (t = threads_list_first(); t != NULL; t = threads_list_next(t)) { + /* ignore threads which are in state NEW */ + if (t->state == THREAD_STATE_NEW) + continue; + /* print thread info */ printf("\n"); -- 2.25.1