Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Subject: RE: SHOWSTOPPER: [was Re: vfscanf in newlib] X-MimeOLE: Produced By Microsoft Exchange V6.0.4417.0 content-class: urn:content-classes:message Date: Mon, 23 Apr 2001 09:10:04 +1000 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: SHOWSTOPPER: [was Re: vfscanf in newlib] Thread-Index: AcDLgQrPK+ifUJpDS8yotT7tOSiGtAAACU+w From: "Robert Collins" To: Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id TAA26748 > -----Original Message----- > From: Christopher Faylor [mailto:cgf AT redhat DOT com] > Sent: Monday, April 23, 2001 9:16 AM > To: cygwin-developers AT cygwin DOT com > Subject: Re: SHOWSTOPPER: [was Re: vfscanf in newlib] > > > On Mon, Apr 23, 2001 at 08:59:47AM +1000, Robert Collins wrote: > >I might be a cancellation point being checked before MTInterface is > >initialised. If thats the case, I suggest that MTInterface is > >initialised earlier. > > It should be initialized pretty early. I don't see any way > for /etc/passwd > to be read prior to this initialization. > > This is the initialization in question, right: > > user_data->threadinterface->Init (user_data->forkee); > Yes. Actually can you tell me - the if (forked) below only runs in spawned cygwin process's ? If so I've got a few bugs to fix.. Rob void MTinterface::Init (int forked) ... if (forked) return; /* shm areas a inherited when forking */ shm_head = NULL; /* possible the atfork lists should be inited here as well */ mainthread.win32_obj_id = myself->hProcess; mainthread.setThreadIdtoCurrent (); /* store the main thread's self pointer */ TlsSetValue (thread_self_dwTlsIndex, &mainthread);