diff options
| author | Mike Makonnen <mtm@FreeBSD.org> | 2003-05-25 08:31:33 +0000 |
|---|---|---|
| committer | Mike Makonnen <mtm@FreeBSD.org> | 2003-05-25 08:31:33 +0000 |
| commit | 71d09bc86add29bb88cb5cf14e1403077f9b512c (patch) | |
| tree | 8d4a439b258befa57524829fe1e00a861d962282 /lib/libthr/thread/thr_info.c | |
| parent | 6a1899ed5c328e9ef8706a375fa54b463a59d4c0 (diff) | |
Notes
Diffstat (limited to 'lib/libthr/thread/thr_info.c')
| -rw-r--r-- | lib/libthr/thread/thr_info.c | 2 |
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); |
