This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Add finit_module syscall for Linux
>> (*) pthread_kill() must return -ESRCH if target thread was already
>> exited. that imply
>> pthread_self() returns pid like id number, not bare C pointer.
>
> false. that's only required if the impl *detects* the condition, and
> even then only in outdated posix 2001. posix 2008 clarified the issue.
> using kernel tids for pthread_t is a very bad design.
I have no idea how to return -ESRCH if using pointer. Do you have?