X-Spam-Check-By: sourceware.org Message-ID: <46ca01fa0602060433u59a23ea3id3e4ae0da44b6073@mail.gmail.com> Date: Mon, 6 Feb 2006 18:03:04 +0530 From: Sudhahar To: cygwin AT cygwin DOT com Subject: Cygwin fork implementation MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id k16CXEWA021613 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/