threads/101323: fork(2) in threaded programs broken.

Poul-Henning Kamp phk at phk.freebsd.dk
Thu Aug 3 20:30:18 UTC 2006


The following reply was made to PR threads/101323; it has been noted by GNATS.

From: "Poul-Henning Kamp" <phk at phk.freebsd.dk>
To: Daniel Eischen <deischen at freebsd.org>
Cc: FreeBSD-gnats-submit at freebsd.org, freebsd-threads at freebsd.org
Subject: Re: threads/101323: fork(2) in threaded programs broken. 
Date: Thu, 03 Aug 2006 20:21:07 +0000

 In message <Pine.GSO.4.64.0608031614450.13543 at sea.ntplx.net>, Daniel Eischen wr
 ites:
 
 >Actually, I would prefer to emit an error message of the
 >form:
 >
 >   "fork() from a threaded process is not defined by POSIX"
 >
 >and purposefully segfault ;-)
 
 Are you working for us or the competition ?  :-)
 
 
 
 >> Anyway, apart from the view from the theoretical high ground and
 >> the fact that POSIX doesn't actually say anything helpful here, are
 >> there any objections to the fix I proposed ?
 >
 >For that one specific change, no objection.  I have an
 >objection to enabling the NOTYET in thr_kern.c without
 >having an overall solution for libc as well.
 
 I have no plans of anything like that.
 
 -- 
 Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
 phk at FreeBSD.ORG         | TCP/IP since RFC 956
 FreeBSD committer       | BSD since 4.3-tahoe    
 Never attribute to malice what can adequately be explained by incompetence.


More information about the freebsd-threads mailing list