This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug nptl/14744] kill -32 $pid or kill -33 $pid on a process cancels a random thread
- From: "bugdal at aerifal dot cx" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Fri, 10 Jan 2014 22:43:03 +0000
- Subject: [Bug nptl/14744] kill -32 $pid or kill -33 $pid on a process cancels a random thread
- Auto-submitted: auto-generated
- References: <bug-14744-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=14744
--- Comment #2 from Rich Felker <bugdal at aerifal dot cx> ---
Perhaps I was not clear. I (hopefully obviously) did not mean that there should
be some global state "this application has called pthread_cancel" which causes
any thread receiving signal 32 or 33 to get cancelled if it's set. The intent
was that pthread_cancel should set the cancellation state on its target (in the
TCB or thread-local storage), and a thread should never act upon cancellation
unless this state is set.
--
You are receiving this mail because:
You are on the CC list for the bug.