This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug nptl/19193] New: pthread_kill returns ESRCH for a thread ID whose lifetime has not ended


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]