On Wed, Jul 29, 2009 at 03:32:28PM +0800, Haojun Bao wrote:
>Christopher Faylor <cgf-use-the-mailinglist-please@cygwin.com> 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 is a "small" number then something is wrong and we're allocating too
>> much of the cygheap. The cygheap was always supposed to be relatively
>> small. Maybe we're abusing it too much in 1.7.
>
>There are quite some fds. In start-process, emacs will allocate 1 PTY
>and 1 pipe for each process it starts.
Yes, I assumed that there were a bunch of fds but I was looking for an
exact number rather than "quite some". I can't give exact details about
how to find the number now but I thought that since you were looking at
the code it wouldn't be too hard to figure this value out.
Anyway, Corinna has a stopgap fix for this which will probably show up
in a 1.7.0-* release sometime soon.