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

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Jan 15 00:53:24 UTC 2015


Garrett Cooper,425-314-3911 <ngie at FreeBSD.org> changed:

           What    |Removed                     |Added
             Status|New                         |In Progress
                 CC|                            |freebsd-testing at freebsd.org
           Assignee|freebsd-standards at FreeBSD.o |ngie at FreeBSD.org
                   |rg                          |

--- Comment #4 from Garrett Cooper,425-314-3911 <ngie at FreeBSD.org> ---
Easy fix:

         * As usual, ESRCH should follow if
         * we try to detach an invalid thread.

+#ifdef __NetBSD__
        rv = pthread_cancel(NULL);
+       rv = pthread_cancel(t);
        ATF_REQUIRE(rv == ESRCH);

You are receiving this mail because:
You are on the CC list for the bug.

More information about the freebsd-testing mailing list