lkml.org 
[lkml]   [1996]   [Nov]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Lynx spinning. Kernel problem?

On Mon, 25 Nov 1996, Alan Cox wrote:

>
> > So what I imagine is happening is lynx (2.3 BETA) calls 'connect'
> > with a non-blocking socket, and connect returns immediately. Then lynx
> > selects with a zero timeout, the select returns, and lynx calls connect
> > again. But why would lynx do anything so stupid?
>
> Lynx is written by folks who didnt read the man pages to select
> carefully. Make it reassign a timeout to the select before each select
> call

That's the way select works in Linux, but some other Unix
dialects leave the timeout alone so you can use the same
struct over and over on select calls. So maybe they just
originaly developed on another Unix platform? I ran into
the same "problem" with select when porting software from SCO
to Linux.

> Alan
>

--------------------------------------
Hugo Van den Berg - hbe@cypres.nl
Phone - +31 (0)30 - 60 25 400
Fax - +31 (0)30 - 60 50 799
--------------------------------------


\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.070 / U:2.548 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site