Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Aug 1998 10:17:35 -0500
From:      Jonathan Lemon <jlemon@americantv.com>
To:        Alfred Perlstein <bright@www.hotjobs.com>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: sfork()?
Message-ID:  <19980819101735.48927@right.PCS>
In-Reply-To: <Pine.BSF.3.96.980819095759.17267L-100000@bright.fx.genx.net>; from Alfred Perlstein on Aug 08, 1998 at 10:43:09AM -0500
References:  <199808191303.PAA10187@sos.freebsd.dk> <Pine.BSF.3.96.980819095759.17267L-100000@bright.fx.genx.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Aug 08, 1998 at 10:43:09AM -0500, Alfred Perlstein wrote:
> 
> can someone explain why this doesn't work?

Look at the -hacker archives, for a message from John Dyson
titled "malloc() problems in children after using rfork()", 
circa Nov 1997.  It includes an assembly wrapper around rfork()
that is needed to make it work in userland.

You apparently also need some assembly code to handle management
of the stack; from my understanding, both processes will share
the same stack on return from rfork(), and stomp on each other.
--
Jonathan

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



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