This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: How to spawn from big-stack program
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