[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:07 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191906
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 on the CC list for the bug.
More information about the freebsd-testing
mailing list