Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Aug 2006 13:51:45 -0400 (EDT)
From:      Daniel Eischen <deischen@freebsd.org>
To:        Poul-Henning Kamp <phk@critter.freebsd.dk>
Cc:        FreeBSD-gnats-submit@freebsd.org, freebsd-threads@freebsd.org
Subject:   Re: threads/101323: fork(2) in threaded programs broken.
Message-ID:  <Pine.GSO.4.64.0608031348490.13543@sea.ntplx.net>
In-Reply-To: <200608030924.k739OrJ1016406@critter.freebsd.dk>
References:  <200608030924.k739OrJ1016406@critter.freebsd.dk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 3 Aug 2006, Poul-Henning Kamp wrote:

> 	Forking a threaded process and starting a thread in the
> 	child process does not work.
>
> 	Tested on -current and releng_6 and both fails with more or
> 	less the same error message:
>
> 	Fatal error 'mutex is on list' at line 540 in file
> 	    /usr/src/lib/libpthread/thread/thr_mutex.c (errno = 0)

fork()ing from a threaded process and making calls to functions
other than those defined as async-signal-safe is not allowed 
by POSIX.  libpthread intentionally doesn't support this.

-- 
DE



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.64.0608031348490.13543>