Subject: Re: fork(2) vs. pthread_create() (fwd)
To: None <>
From: Emmanuel Dreyfus <>
List: tech-userlevel
Date: 06/09/2004 00:17:11
> Notably, none of the pthread_* functions are async-signal-safe.
> In order for this to work, there would have to be a fork handler that
> reset all of libpthread's state to initialization values, and the
> child program would still suffer severe constraints on what program
> mutexes or variables it could use (consider, for example, the state of
> stdio mutexes at the moment of fork()).

I don't find this very satisfaying. Forking from a program that executed
threads works on Linux and FreeBSD. It's not an extraordinary scenario.

Emmanuel Dreyfus
Il y a 10 sortes de personnes dans le monde: ceux qui comprennent 
le binaire et ceux qui ne le comprennent pas.