[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 01:01:20 UTC 2015


--- Comment #5 from Garrett Cooper,425-314-3911 <ngie at FreeBSD.org> ---
(In reply to Garrett Cooper,425-314-3911 from comment #3)

I was on the right track... just the wrong body of code...

337 int
338 _thr_find_thread(struct pthread *curthread, struct pthread *thread,
339     int include_dead)
340 {
341         struct pthread *pthread;
342         int ret;
344         if (thread == NULL)
345                 return (EINVAL);

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

More information about the freebsd-testing mailing list