Re: Emacs can't start-process more than 30~40 processes

2009-07-30 Thread Steven Hartland
- Original Message - From: "Corinna Vinschen" On Jul 29 19:25, Christopher Faylor wrote: On Wed, Jul 29, 2009 at 03:32:28PM +0800, Haojun Bao wrote: >Christopher Faylor writes: > >> On Tue, Jul 28, 2009 at 10:52:44AM +0800, Haojun Bao wrote: >>>I have debugged it again, and I think

Re: Emacs can't start-process more than 30~40 processes

2009-07-30 Thread Corinna Vinschen
On Jul 29 19:25, Christopher Faylor wrote: > On Wed, Jul 29, 2009 at 03:32:28PM +0800, Haojun Bao wrote: > >Christopher Faylor writes: > > > >> On Tue, Jul 28, 2009 at 10:52:44AM +0800, Haojun Bao wrote: > >>>I have debugged it again, and I think I have more clue. I have read the > >>>how-cygheap-

Re: Emacs can't start-process more than 30~40 processes

2009-07-29 Thread Haojun Bao
Christopher Faylor writes: > On Wed, Jul 29, 2009 at 03:32:28PM +0800, Haojun Bao wrote: >>> >>> Not necessarily. We don't expect these functions to return NULL. It >>> would be interesting to know how many fds are open at this point. If it >>> is a large number then maybe we have to start enf

Re: Emacs can't start-process more than 30~40 processes

2009-07-29 Thread Christopher Faylor
On Wed, Jul 29, 2009 at 03:32:28PM +0800, Haojun Bao wrote: >Christopher Faylor writes: > >> On Tue, Jul 28, 2009 at 10:52:44AM +0800, Haojun Bao wrote: >>>I have debugged it again, and I think I have more clue. I have read the >>>how-cygheap-works.txt, and this might be a known problem. >>> >>>It

Re: Emacs can't start-process more than 30~40 processes

2009-07-29 Thread Haojun Bao
Christopher Faylor writes: > On Tue, Jul 28, 2009 at 10:52:44AM +0800, Haojun Bao wrote: >>I have debugged it again, and I think I have more clue. I have read the >>how-cygheap-works.txt, and this might be a known problem. >> >>It's because the cygheap space has been used up. With Procexp, I can

Re: Emacs can't start-process more than 30~40 processes

2009-07-28 Thread Haojun Bao
Dave Korn writes: > Haojun Bao wrote: > >> >> My question is, is there anyway out of this? Can I just rebase >> cygwin1.dll to the end of all other DLLs? > > It ought to work. Would you mind giving it a try and letting us know if it > helps? It might be a good idea to tweak rebaseall to do

Re: Emacs can't start-process more than 30~40 processes (Was: Re: Emacs w3m `w3m-toggle-inline-images' cause segfault)

2009-07-28 Thread Christopher Faylor
On Tue, Jul 28, 2009 at 10:52:44AM +0800, Haojun Bao wrote: >Haojun Bao writes: > >> I have reduced the test case in this mail >> http://cygwin.com/ml/cygwin/2009-07/msg00111.html >> to a simpler one: >> >> $/bin/emacs --batch -q --execute '(let ((num 0)) >> (while (< num 30) >>

Re: Emacs can't start-process more than 30~40 processes (Was: Re: Emacs w3m `w3m-toggle-inline-images' cause segfault)

2009-07-28 Thread Dave Korn
Haojun Bao wrote: > > My question is, is there anyway out of this? Can I just rebase > cygwin1.dll to the end of all other DLLs? It ought to work. Would you mind giving it a try and letting us know if it helps? It might be a good idea to tweak rebaseall to do this for us. cheers,

Re: Emacs can't start-process more than 30~40 processes (Was: Re: Emacs w3m `w3m-toggle-inline-images' cause segfault)

2009-07-27 Thread Haojun Bao
Haojun Bao writes: > I have reduced the test case in this mail > http://cygwin.com/ml/cygwin/2009-07/msg00111.html > to a simpler one: > > $/bin/emacs --batch -q --execute '(let ((num 0)) > (while (< num 30) > (setq num (+ num 1)) > (message "num is %d" num) >

Emacs can't start-process more than 30~40 processes (Was: Re: Emacs w3m `w3m-toggle-inline-images' cause segfault)

2009-07-26 Thread Haojun Bao
I have reduced the test case in this mail http://cygwin.com/ml/cygwin/2009-07/msg00111.html to a simpler one: $/bin/emacs --batch -q --execute '(let ((num 0)) (while (< num 30) (setq num (+ num 1)) (message "num is %d" num) (start-process "hello" nil "/usr/bin