It is possible to catch a LWP while it is being created or destroyed,
commit78a447212232fb7f57f9c9d91e5814f110102366
authorMatthew Dillon <dillon@dragonflybsd.org>
Sat, 11 Aug 2007 18:18:30 +0000 (11 18:18 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Sat, 11 Aug 2007 18:18:30 +0000 (11 18:18 +0000)
tree8480a9df5e6bab4f986e212db9e4b2d1f4fbc294
parente15ac0322b5c6e277b371c77abf07e7100653a2c
It is possible to catch a LWP while it is being created or destroyed,
with lwp_thread == NULL.  Check for the case.

Reported-by: Stefan Krueger <space7@web.de>
sys/kern/kern_synch.c