[ANNOUNCEMENT] Updated: cygwin-1.3.21-1

Rolf Campbell rcampbell@tropicnetworks.com
Wed Mar 12 23:55:00 GMT 2003


Christopher Faylor wrote:
> I've made a new version of the Cygwin DLL and associated utilities
> available for download.  As usual, a list of what has changed is below.
> 
> - Fix setsid problem where processes did not correctly detach from a
>   console.  (Christopher Faylor)

I commonly run a compilation from within GNU Emacs.  I've never had any 
problems with this until I tried running 1.3.21-1.  I think it has to do 
with the changes to the console handling.

Here's a silly little program:
#include <stdlib.h>
#include <process.h>

int main(int numArgs, char** args)
{
   spawnl(_P_WAIT, "C:/cygwin/bin/ls", "C:/cygwin/bin/ls", NULL);
   return 0;
}


If I compile it without -mno-cygwin, then everything is fine (tried rxvt 
& emacs).
If it is compiled with -mno-cygwin, it still works fine in rxvt, but 
when run from within bash, within Emacs, it allocates a console, writes 
its stdout to that console, then closes it's console.

For a large compile, this means that 1000's of consoles are popping up 
and dissapearing, not only slowing things down, but also loosing the 
stdout from that non-cygwin app.

-Rolf



--
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/



More information about the Cygwin mailing list