Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 May 2003 18:07:55 +0400 (MSD)
From:      Igor Sysoev <is@rambler-co.ru>
To:        Terry Lambert <tlambert2@mindspring.com>
Cc:        freebsd-arch@freebsd.org
Subject:   Re: rfork(RFPROC|RFMEM)
Message-ID:  <Pine.BSF.4.21.0305051756330.62854-100000@is>
In-Reply-To: <3EB66C92.304110A4@mindspring.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 5 May 2003, Terry Lambert wrote:

> Igor Sysoev wrote:
> > As stated in http://www.freebsd.org/cgi/query-pr.cgi?pr=50923
> > rfork(RFPROC|RFMEM) in 4.8-STABLE and 5.0-CURRENT requires RFTHREAD flag
> > but it is not even mentioned in man page.
> 
> This makes the stack glue implicit.  You can also use explicit
> stack glue.  Most people using the RFPROC flag use explicit
> stack glue, i.e. we carry arounbd our own assembly language
> trampoline code for stack setup that John Dyson originally
> wrote.  I think wanting RFPROC to act like Linux's "clone"
> system call is probably wrong.

What is stack glue ?
I use rfork_thread(3) wrapper that allows to setup another stack for
rfork()ed process.

What RFTHREAD flag does ?
By the way linuxthreads port always uses RFTHREAD flag.


Igor Sysoev
http://sysoev.ru/en/



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