Subject: Re: fork(2) vs. pthread_create() (fwd)
To: Emmanuel Dreyfus <manu@netbsd.org>
From: Jason Thorpe <thorpej@wasabisystems.com>
List: tech-userlevel
Date: 06/09/2004 16:13:15
--Apple-Mail-68--1006070580
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII; format=flowed


On Jun 9, 2004, at 1:43 AM, Emmanuel Dreyfus wrote:

> Before forking, I joined the exisiting thread, thus reverting to a 
> single
> threaded process. The problem is that the process remebers it has been
> threaded when I hit the fork, whereas it is not threaded anymore.

Of course it is still threaded... you simply only have one (the main) 
thread at the time.

In any case, your program violates POSIX, so you should fix your 
program.

         -- Jason R. Thorpe <thorpej@wasabisystems.com>


--Apple-Mail-68--1006070580
content-type: application/pgp-signature; x-mac-type=70674453;
	name=PGP.sig
content-description: This is a digitally signed message part
content-disposition: inline; filename=PGP.sig
content-transfer-encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (Darwin)

iD8DBQFAx5mLOpVKkaBm8XkRApZpAKDLX32x534ELu79iaaMYIxMX2PBrgCfcQTS
9wGezHRvuinZdPa8fg7bN+A=
=yYg/
-----END PGP SIGNATURE-----

--Apple-Mail-68--1006070580--