[Bug 191906] pthread_cancel(NULL) on FreeBSD returns EINVAL, not ESRCH according to manpage

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Nov 5 21:54:08 UTC 2017


Konstantin Belousov <kib at FreeBSD.org> changed:

           What    |Removed                     |Added
         Resolution|---                         |Not A Bug
             Status|Open                        |Closed
                 CC|                            |kib at FreeBSD.org

--- Comment #11 from Konstantin Belousov <kib at FreeBSD.org> ---
(In reply to Ngie Cooper from comment #10)
There is no underlying issue.  Behavior of pthread_cancel() is undefined if the
argument does not reference valid running thread.

Also, in SUSv7TC2 I only see the statement that pthread_cancel() shall not
return EINTR, there is no single word about EINVAL being forbidden.

You are receiving this mail because:
You are the assignee for the bug.

More information about the freebsd-standards mailing list