This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [ANNOUNCEMENT] Updated: cygwin-1.3.21-1

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.


Unsubscribe info:
Bug reporting:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]