Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Dec 1996 09:16:33 +0800
From:      Peter Wemm <peter@spinner.DIALix.COM>
To:        Terry Lambert <terry@lambert.org>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: poll(2) 
Message-ID:  <199612160116.JAA24385@spinner.DIALix.COM>
In-Reply-To: Your message of "Sun, 15 Dec 1996 13:53:59 MST." <199612152053.NAA23897@phaeton.artisoft.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
Terry Lambert wrote:
> > I did some code to do this about 6 months ago, it's still in my checked
> > out -current kernel and still works.  I had seen OpenBSD's code (a lot)
> > so it's not purely independent, but it is quite different in certain
> > areas.  While I was there, I got carried away and implemented the feature
> > described in the "BUGS" section right at the end of the select(2) man page.
> 
> This would be the modification of the remaining time for a non-null,
> non-zero timeval struct?

Yes..

> You should note that this will not work for much of the software in the
> known universe... I think even Linux backed this one out after it caused
> problems with ...oh... Netscape.

No...  we emulate the copyout for the linux code.  They have two select 
syscalls, the "new" select copies out, the "old" one doesn't.  I think the 
old one is visible as "bsd_select()" in libc, but I'm not 100% sure..

For what it's worth, the entire time that I've been running this code, the 
only things that broke were "/usr/bin/tail -f" and I vaguely remember 
suspecting the rpc timeout code in libc.  I think there was one other 
program, but I can't remember what it was.  Netscape works fine, as does 
just about everything else that runs on Linux (which is damn near 
everything these days) with it's copyout by default.

> 					Terry Lambert
> 					terry@lambert.org

Cheers,
-Peter





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