c...@chuq.com (Chuck Silvers) writes: >> would this apply to netbsd-9 too ? The hang I'm seeing is on a system >> with a HEAD kernel and a netbsd-9 userland
>it looks like the diff won't apply as-is, but I think the concept still >applies. I'm currently testing: Index: lib/libpthread/pthread.c =================================================================== RCS file: /cvsroot/src/lib/libpthread/pthread.c,v retrieving revision 1.153.2.1 diff -p -u -r1.153.2.1 pthread.c --- lib/libpthread/pthread.c 26 Jan 2020 10:55:16 -0000 1.153.2.1 +++ lib/libpthread/pthread.c 3 May 2022 09:22:58 -0000 @@ -430,6 +430,8 @@ pthread_create(pthread_t *thread, const * only be one thread before it becomes true. */ if (pthread__started == 0) { + _lwp_park(CLOCK_REALTIME, 0, NULL, + pthread__self()->pt_lid, NULL, NULL); pthread__start(); pthread__started = 1; }