Subject: Re: proposed fix for pthread_kill() of a zombie thread.
To: Nathan J. Williams <nathanw@wasabisystems.com>
From: Chuck Silvers <chuq@chuq.com>
List: tech-userlevel
Date: 10/09/2005 11:38:54
On Sun, Oct 09, 2005 at 02:07:35PM -0400, Nathan J. Williams wrote:
> Looks good to me. I bet there are a couple of other places that don't
> correctly handly PT_STATE_ZOMBIE... pthread_suspend_np() looks
> problematic, for example.

yup.  what error should pthread_suspend_np() return in this case?

I see that pthread_suspend_np() and pthread_resume_np() also don't
call pthread__find() to verify that the given pthread_t is valid like
many of the other interface functions do, should they?  neither does
pthread_cancel().

-Chuck