Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com X-Sent: 22 May 2001 00:28:42 GMT From: "Andrew de Quincey" To: "Robert Collins" , Subject: RE: Strange fork() behaviour under cygwin v1.3.1 Date: Tue, 22 May 2001 01:15:28 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Importance: Normal In-Reply-To: > > > -----Original Message----- > > From: Andrew de Quincey [mailto:andrew AT orbital DOT co DOT uk] > > Sent: Tuesday, May 22, 2001 9:01 AM > > To: cygwin AT cygwin DOT com > > Subject: Strange fork() behaviour under cygwin v1.3.1 > > > > > > > > Hi, I've been playing with the jabber server under win32... > > and I've run > > into a slight problem. The following program illustrates it: > > > > +++++++++++++++++++++++++++++++++++++++++++++++++ > > #include > > Whats ? If it's the GNU portable threads library, and it's using > a native thread library instead of 100% emulated threads, make sure its > using pthreads, not win32 threads. (Explanation: Cygwin is ignorant of > direct win32 thread calls you might make, but it knows about pthreads). It is indeed the Gnu portable threads library, as used by the jabber developers. GNU pth describes itself as: > Pth is a very portable POSIX/ANSI-C based library for > Unix platforms which provides non-preemptive priority-based > scheduling for multiple threads of execution (aka > `multithreading') inside event-driven applications. From the "non-preemptive-ness" & the lack of any pthread or win32 thread functions in it, it sounds like an entirely user-space threading library. > [snip] > > ****** IMPORTANT ******* > When writing or testing threading code, ___always___ check return values > and error flags. > > I realise that that isn't the problem here: your thread function does > run, but all the same! > ************************ That stuff was copied directly out of the jabber server source! :))) > [snip] -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple