Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Feb 1999 19:19:07 +1000
From:      Stephen McKay <syssgm@detir.qld.gov.au>
To:        Warner Losh <imp@village.org>
Cc:        Stephen McKay <syssgm@detir.qld.gov.au>, freebsd-hackers@freebsd.org
Subject:   Re: select(2) proposed change 
Message-ID:  <199902180919.TAA29044@nymph.detir.qld.gov.au>
In-Reply-To: <199902180815.BAA66534@harmony.village.org> from Warner Losh at "Thu, 18 Feb 1999 01:15:43 -0700"
References:  <199902180742.RAA27123@nymph.detir.qld.gov.au> <199902180511.WAA65110@harmony.village.org> <199902180815.BAA66534@harmony.village.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday, 18th February 1999, Warner Losh wrote:

>In message <199902180742.RAA27123@nymph.detir.qld.gov.au> Stephen McKay writes
>:
>: On Wednesday, 17th February 1999, Warner Losh wrote:
>: 
>: >+Other systems may modify timeout, but no current ones do it by default.
>: 
>: I am possibly displaying my ignorance, but I thought linux did this
>: by default. 
>
>No.  Linux used to do this by default, but no longer does it by
>default.  There is a separate system call to do that...

Well, OK then.  Perhaps the wording should simply be that "No current
systems modify timeout by default."

>: select() should
>: be changed to do the subtraction.
>
>Select should *NEVER* be changed to do the subtraction.  There are
>*NO* current systems that do this by default.  FreeBSD shouldn't
>change.  It is a *********S***T***U***P***I***D********** idea to
>change the semantics of select(2) at this late stage of the game.

Don't hold back!  Say what you really mean! ;-)

>I've been there with the Linux experiment back in the 0.99p14
>timeframe of Linux.  I cannot tell you the number of bogus programs
>out there that caused 100% cpu usage...

>If you want to create a __linux_select or select2 or some *OTHER*
>system call that does this for you, then I have no objections.

Well, no, I don't intend to add any modified select() yet.  Perhaps when (and
if) we add pselect (the variant that uses timespec instead of timeval) I might
make a case for modifying timeout.  I still think it is the right thing to do.
Though I suppose some people might come after me with pitchforks.

Stephen.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199902180919.TAA29044>