From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11969 invoked by alias); 10 Jan 2014 22:43:05 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Received: (qmail 11930 invoked by uid 48); 10 Jan 2014 22:43:04 -0000 From: "bugdal at aerifal dot cx" To: glibc-bugs@sourceware.org Subject: [Bug nptl/14744] kill -32 $pid or kill -33 $pid on a process cancels a random thread Date: Fri, 10 Jan 2014 22:43:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: nptl X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: bugdal at aerifal dot cx X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: 2.20 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-01/txt/msg00175.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=14744 --- Comment #2 from Rich Felker --- 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.