This is the mail archive of the cygwin-apps@sourceware.cygnus.com 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]

Re: stackdump revisited


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

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