summaryrefslogtreecommitdiff
path: root/lib/libthr/thread/thr_info.c
diff options
context:
space:
mode:
authorMike Makonnen <mtm@FreeBSD.org>2003-05-25 08:31:33 +0000
committerMike Makonnen <mtm@FreeBSD.org>2003-05-25 08:31:33 +0000
commit71d09bc86add29bb88cb5cf14e1403077f9b512c (patch)
tree8d4a439b258befa57524829fe1e00a861d962282 /lib/libthr/thread/thr_info.c
parent6a1899ed5c328e9ef8706a375fa54b463a59d4c0 (diff)
Notes
Diffstat (limited to 'lib/libthr/thread/thr_info.c')
-rw-r--r--lib/libthr/thread/thr_info.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libthr/thread/thr_info.c b/lib/libthr/thread/thr_info.c
index b76d8e5d87f0..b0fae8329d62 100644
--- a/lib/libthr/thread/thr_info.c
+++ b/lib/libthr/thread/thr_info.c
@@ -109,6 +109,7 @@ _thread_dump_info(void)
}
/* Check if there are no dead threads: */
+ DEAD_LIST_LOCK;
if (TAILQ_FIRST(&_dead_list) == NULL) {
/* Output a record: */
strcpy(s, "\n\nTHERE ARE NO DEAD THREADS\n");
@@ -126,6 +127,7 @@ _thread_dump_info(void)
dump_thread(fd, pthread, /*long_version*/ 0);
}
}
+ DEAD_LIST_UNLOCK;
/* Close the dump file: */
__sys_close(fd);