rfork(RFPROC|RFMEM)
Igor Sysoev
is at rambler-co.ru
Mon May 5 07:07:59 PDT 2003
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/
More information about the freebsd-arch
mailing list