This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug nptl/19193] New: pthread_kill returns ESRCH for a thread ID whose lifetime has not ended
- From: "fweimer at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Sat, 31 Oct 2015 11:42:42 +0000
- Subject: [Bug nptl/19193] New: pthread_kill returns ESRCH for a thread ID whose lifetime has not ended
- Auto-submitted: auto-generated
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.