It is possible to catch a LWP while it is being created or destroyed,
commite595c6cdf0a200a5cd33ffd698c790c7fb8a9ff4
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)
treead0af7a9efee59c7943c09d0c6d7b9e1f313fedc
parent47b4bbcd302c60cde286ec0db7b76fe6fde6d3a1
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