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 Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <002b01c1abf5$1aea8980$0100a8c0@gregmo> From: "Greg Mosier" To: References: <006e01c1a96a$f60429a0$aace0544 AT CX535256D> <20020130131416 DOT D11608 AT cygbert DOT vinschen DOT de> <013a01c1ab96$839eefc0$0100a8c0 AT advent02> <000b01c1abaa$4e70f460$0100a8c0 AT gregmo> <20020202054057 DOT GA10185 AT redhat DOT com> Subject: Re: A real fork() on NT Date: Sat, 2 Feb 2002 06:22:53 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 From: "Christopher Faylor" Subject: Re: A real fork() on NT > Cygwin fork works just fine. It's slow but it should work as well as UNIX > fork for a ported application. The only exception that I can think of is > if you use dlopen to load a non-cygwin DLL. In that case there is a problem > with relocation of the DLL after a fork. > > If you consider the number of applications that have been ported to cygwin, > it would be pretty amazing if there was some basic problem with fork. Okay, maybe it isn't an issue with fork() specifically, but that was what I had understood from reading the list archives. That aside, how tolerant is the list of helping someone getting code to function? Eggdrop source is written to skip over forking when running under cygwin, but you can run it and then close that window and the eggdrop will continue to run in background. I edited the source for it so that it doesn't skip the fork() routines and it returns the controlling terminal but yet it doesn't function in that it doesn't connect to IRC nor does it listen on it's telnet port. I've looked at other sources for things that I might try to get this to work (code snipettes) but alas nothing has helped (granted, C is a foreign language to me, though programming in general is not). Interesting to note is that when it's ran this way the eggdrop has a tty of the current login instead of an ? to indicate that it's not using a terminal output (terminology here may be incorrect, but you get the idea). TIA for any ideas, Greg -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/