diff options
Diffstat (limited to 'sys/kern/subr_witness.c')
-rw-r--r-- | sys/kern/subr_witness.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/kern/subr_witness.c b/sys/kern/subr_witness.c index a78c789..4bb6a70 100644 --- a/sys/kern/subr_witness.c +++ b/sys/kern/subr_witness.c @@ -1463,11 +1463,13 @@ DB_SHOW_COMMAND(locks, db_witness_list) db_printf("pid %d not found\n", pid); return; } - td = &p->p_thread; /* XXXKSE */ + FOREACH_THREAD_IN_PROC(p, td) { + witness_list(td); + } } else { td = curthread; + witness_list(td); } - witness_list(td); } DB_SHOW_COMMAND(witness, db_witness_display) |