Re: what is this code good for? -> OS/2

From: Oskar Pearson <oskar@dont-contact.us>
Date: Thu, 18 Sep 1997 10:33:18 +0200

Hi

> in file comm.c there is the following code section (twice)
>
> if (sec > 60)
> fatal_dump(NULL);
>
> approx. line 800 and 895
>
> what is this good for?
the reason there are 2 is that one is used when your system has poll,
the other when you use select... that's what the

look
#ifdef USE_POLL
... code using poll
#else
copy of same code using select

> why to force a fatal_dump?
it means that comm_select is bein called with the incorrect value...
which means eventNextTime is returning a value >60, which means some
event (such as running expire on the cache) is scheduling itself
to a very wierd value... like a negative number?

if ((loop_delay = eventNextTime()) < 0)
            loop_delay = 0;
        switch (comm_select(loop_delay)) {

> Squid 1.1.15 'dumps' due to the above code, 1.1.10 has no problem under OS/2
>
> BTW: I'd like to release the 1.1.15 Squid OS/2 port, so prompt answers appreciated
> the port works fine when these two lines uncommented :(
>
>
>
>
> Peter Meerwald Schieastandstr. 3
> seawood@very.priv.at A-5061 Elsbethen/Austria
> pmeerw@cosy.sbg.ac.at fon/fax 43-662-627509
> Fidonet 2:315/11 cellular 43-664-1615108
>
> "Anyone who cannot cope with mathematics is not fully human. He is at
> best a tolerable subhuman who has learned to wear shoes, bathe and
> not make messes in the house." -- from the notebooks of Lazarus Long
>
>
>
Received on Thu Sep 18 1997 - 01:37:06 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:37:06 MST