Hi,
I'm trying to understand how Cygwin implement fork in windows. When
I browse through the fork code I found Cygwin copies the data
segment,bss segment etc as
rc = fork_copy (pi, "user/cygwin data",
user_data->data_start, user_data->data_end,
user_data->bss_start, user_data
, Dave Korn <[EMAIL PROTECTED]> wrote:
> Sudhahar wrote:
>
> > from parent process to child process. After trying to find where the
> > data_start and data_end get the address of running process data and
> > bss segment, I ended up with a declaration of
> >
> &
d->p.bss_start,
d->p.bss_end,
NULL))
goto cleanup;
}
And also please let me know if there exist any document which gives
some idea about this.
Thanks
Sudha
On 1/20/06, Dave Korn &l
: cygwin at cygwin dot com
* Date: Mon, 23 Jan 2006 22:35:20 -0800
* Subject: Re: Need information about data and bss segment address
access in cygwin
* References: <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
* Reply-to: cygwin at cygwin dot com
Sudhaha
Hi,
In Cygwin fork code the statement
int res = setjmp (grouped.ch.jmp);
if (res)
res = fork_child (grouped.ch.parent, grouped.first_dll, grouped.load_dlls);
else
res = fork_parent (grouped.ch.parent, grouped.first_dll,
grouped.load_dlls, esp, grouped.ch);
avoids the fork being cal
5 matches
Mail list logo