This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Cygwin fork implementation
- From: Sudhahar <jsudha80 at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Mon, 6 Feb 2006 18:03:04 +0530
- Subject: Cygwin fork implementation
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 called repeatedly by the created process of
parent. Can anyone tell me how this actually happens. Thanks in
advance for your time and comments.
Thanks
Sudhakar
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/