Subject: Re: fork(2) vs. pthread_create() (fwd)
To: Emmanuel Dreyfus <manu@netbsd.org>
From: Martin Husemann <martin@duskware.de>
List: tech-userlevel
Date: 06/09/2004 10:40:59
On Wed, Jun 09, 2004 at 08:34:48AM +0000, Emmanuel Dreyfus wrote:
> 3) We fork
> 4) We spawn many threads
[..]
> Given that
> the program violates no standard, I'd just call it a bug in NetBSD native
> libpthread.

According to Nathans explanation it does violate Posix: you can not do (4)
because you did not exec and the pthread_* functions needed for step 4
are not async signal safe.

Martin