FreeBSD Bugzilla – Attachment 151650 Details for
Bug 196738
lib/libpthread/t_detach.c:76: rv == EINVAL not met
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed fix
remove-race-in-t_detach.patch (text/plain), 847 bytes, created by
Enji Cooper
on 2015-01-14 23:58:36 UTC
(
hide
)
Description:
proposed fix
Filename:
MIME Type:
Creator:
Enji Cooper
Created:
2015-01-14 23:58:36 UTC
Size:
847 bytes
patch
obsolete
>diff --git a/contrib/netbsd-tests/lib/libpthread/t_detach.c b/contrib/netbsd-tests/lib/libpthread/t_detach.c >index 8922d5a..96b3e09 100644 >--- a/contrib/netbsd-tests/lib/libpthread/t_detach.c >+++ b/contrib/netbsd-tests/lib/libpthread/t_detach.c >@@ -38,11 +38,18 @@ __RCSID("$NetBSD: t_detach.c,v 1.1 2011/03/24 13:52:04 jruoho Exp $"); > > #include "h_common.h" > >+#ifdef __FreeBSD__ >+#include <time.h> >+#endif >+ > static void *func(void *); > > static void * > func(void *arg) > { >+#ifdef __FreeBSD__ >+ sleep(2); >+#endif > return NULL; > } > >@@ -72,10 +79,15 @@ ATF_TC_BODY(pthread_detach, tc) > */ > PTHREAD_REQUIRE(pthread_detach(t)); > >+#ifdef __FreeBSD__ >+ sleep(1); >+#endif >+ > rv = pthread_join(t, NULL); > ATF_REQUIRE(rv == EINVAL); > > #ifdef __FreeBSD__ >+ sleep(3); > atf_tc_expect_fail("PR # 191906: fails with EINVAL, not ESRCH"); > #endif >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 196738
: 151650