[Python-Dev] Re: threading and forking and 2.0 (patch #101226)

Thomas Wouters thomas@xs4all.net
Fri, 25 Aug 2000 07:23:52 +0200


On Fri, Aug 25, 2000 at 12:58:15AM -0500, Guido van Rossum wrote:

> + 	/* XXX Is the following supported here? */
> + 	pthread_atfork(&prefork_callback, &parent_callback, &child_callback);
>   }
>   
>   #else /* !_HAVE_BSDI */

To answer that question: yes. BSDI from 3.0 onward has pthread_atfork(),
though threads remain unusable until BSDI 4.1 (because of a bug in libc
where pause() stops listening to signals when compiling for threads.) I
haven't actaully tested this patch yet, just gave it a once-over ;) I will
test it on all types of machines we have, though.

-- 
Thomas Wouters <thomas@xs4all.net>

Hi! I'm a .signature virus! copy me into your .signature file to help me spread!