[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
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191906
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);
+#else
+ rv = pthread_cancel(t);
+#endif
ATF_REQUIRE(rv == ESRCH);
}
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-standards
mailing list