bin/31661: pthread_kill signal handler doesn't get sigcontext or ucontext

Daniel Eischen deischen at FreeBSD.org
Wed Feb 4 07:51:55 PST 2004


Synopsis: pthread_kill signal handler doesn't get sigcontext or ucontext

State-Changed-From-To: open->closed
State-Changed-By: deischen
State-Changed-When: Wed Feb 4 07:47:36 PST 2004
State-Changed-Why: 
This is written against libc_r's implementation of pthread_kill;
libpthread does provide full signal handler arguments to pthread_kill.
Still it iw worth noting that trying to do anything sane with
a context from a pthread_kill() is probably not what you want
especially for scope process threads.  pthread_kill() is a
simulated interrupt and the threads interrupted context is generated
by the threads library -- it is not like a real signal interrupted
the thread while it was running.

http://www.freebsd.org/cgi/query-pr.cgi?pr=31661


More information about the freebsd-threads mailing list