From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23893 invoked by alias); 31 Oct 2015 11:42:47 -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 23835 invoked by uid 48); 31 Oct 2015 11:42:43 -0000 From: "fweimer at redhat dot com" To: glibc-bugs@sourceware.org Subject: [Bug nptl/19193] New: pthread_kill returns ESRCH for a thread ID whose lifetime has not ended Date: Sat, 31 Oct 2015 11:42:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: nptl X-Bugzilla-Version: 2.23 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: fweimer at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: security- X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone flagtypes.name Message-ID: 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: 2015-10/txt/msg00402.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=19193 Bug ID: 19193 Summary: pthread_kill returns ESRCH for a thread ID whose lifetime has not ended Product: glibc Version: 2.23 Status: NEW Severity: normal Priority: P2 Component: nptl Assignee: unassigned at sourceware dot org Reporter: fweimer at redhat dot com CC: drepper.fsp at gmail dot com Target Milestone: --- Flags: security- POSIX specifies that the lifetime of a thread ID ends when it terminates and it is detached or joined (or immediately at creation when it is created already detached). POSIX does not specify the ESRCH return value for pthread_kill in case the thread has exited, only if the lifetime of the thread ID has ended (as an option). In analogy with the specification of kill and process lifetime, threads which have exited should not cause pthread_kill to return ESRCH. I think pthread_kill has to ignore the ESRCH error from the system call. -- You are receiving this mail because: You are on the CC list for the bug.