X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Message-ID: <4A509EDA.7060903@gmail.com> Date: Sun, 05 Jul 2009 13:38:50 +0100 From: Dave Korn User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Dave Korn CC: cygwin AT cygwin DOT com Subject: Re: How to spawn from big-stack program References: <416096c60906270139y33e2888cq148430eebb744b71 AT mail DOT gmail DOT com> <20090628103010 DOT GT30864 AT calimero DOT vinschen DOT de> <20090702174425 DOT GC9839 AT ednor DOT casa DOT cgf DOT cx> <20090703104423 DOT GA18746 AT calimero DOT vinschen DOT de> <20090703150212 DOT GA26858 AT ednor DOT casa DOT cgf DOT cx> <20090704161431 DOT GB11034 AT ednor DOT casa DOT cgf DOT cx> <20090705001152 DOT GA2510 AT ednor DOT casa DOT cgf DOT cx> <416096c60907050233q344d37cds41859c611c7ab660 AT mail DOT gmail DOT com> <4A509DC5 DOT 6070506 AT gmail DOT com> In-Reply-To: <4A509DC5.6070506@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Dave Korn wrote: > 207 htobe = CreateThread (&sec_none_nih, 0, is_freerange ? > simplestub: stub, > 208 this, 0, &id); > 209 if (!htobe) > 210 api_fatal ("CreateThread failed for %s - %p<%p>, %E", name, > h, id); This is a problem actually. > 953 waiter_ready = false; > 954 /* Fire up a new thread to track the subprocess */ > 955 cygthread *h = new cygthread (proc_waiter, 0, this, "proc_waiter"); The new process has already been fired up in a suspended state by this time, and if the cygthread c-tor exits, we leave the half-built process lying around forever. cheers, DaveK -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple