public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug nptl/19193] New: pthread_kill returns ESRCH for a thread ID whose lifetime has not ended
@ 2015-10-31 11:42 fweimer at redhat dot com
  2021-08-17  6:23 ` [Bug nptl/19193] " fweimer at redhat dot com
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: fweimer at redhat dot com @ 2015-10-31 11:42 UTC (permalink / raw)
  To: glibc-bugs

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.


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2021-09-20 13:49 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-31 11:42 [Bug nptl/19193] New: pthread_kill returns ESRCH for a thread ID whose lifetime has not ended fweimer at redhat dot com
2021-08-17  6:23 ` [Bug nptl/19193] " fweimer at redhat dot com
2021-08-17  6:25 ` fweimer at redhat dot com
2021-08-17 12:01 ` fweimer at redhat dot com
2021-08-17 12:01 ` fweimer at redhat dot com
2021-08-17 12:01 ` [Bug nptl/19193] pthread_kill, pthread_cancel return " fweimer at redhat dot com
2021-08-17 12:45 ` fweimer at redhat dot com
2021-08-17 13:52 ` fweimer at redhat dot com
2021-09-13 10:46 ` fweimer at redhat dot com
2021-09-17 11:29 ` fweimer at redhat dot com
2021-09-20 12:58 ` cvs-commit at gcc dot gnu.org
2021-09-20 13:49 ` cvs-commit at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).