Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Aug 2006 18:00:34 GMT
From:      Daniel Eischen <deischen@freebsd.org>
To:        freebsd-threads@FreeBSD.org
Subject:   Re: threads/101323: fork(2) in threaded programs broken.
Message-ID:  <200608031800.k73I0YQR010020@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR threads/101323; it has been noted by GNATS.

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.
Date: Thu, 3 Aug 2006 13:51:45 -0400 (EDT)

 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?200608031800.k73I0YQR010020>