This is the mail archive of the
cygwin-apps@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: stackdump revisited
- To: Robert Collins <robert dot collins at itdomain dot com dot au>
- Subject: Re: stackdump revisited
- From: Charles Wilson <cwilson at ece dot gatech dot edu>
- Date: Thu, 06 Jul 2000 20:07:37 -0400
- CC: cygwin-apps at sourceware dot cygnus dot com
- References: <001b01bfe799$2dab0b20$f7c723cb@lifelesswks>
Call me crazy, but aren't fd's 0,1 and 2 == stdin, stdout, stderr (in
some permutation)?
--Chuck
> Robert Collins wrote:
>
> Thanks all for your patience with my stackdumping squid!
>
> this time I have made real progress...
> squid goes thru the following loop when before it starts up the very
> first worker instance.
> ===
> for (i = 0; i < Squid_MaxFD; i++)
> close(i);
> ====
>
> when i=2 it stackdumps. Are fd's 0, 1 and 2 reserved? I am looking
> into whether squid _needs_ to close these, or if it's an old hack
> still present..
>
> Thanks in advance,
> Rob