From owner-freebsd-hackers Sun Dec 15 17:17:41 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id RAA26202 for hackers-outgoing; Sun, 15 Dec 1996 17:17:41 -0800 (PST) Received: from spinner.DIALix.COM (root@spinner.DIALix.COM [192.203.228.67]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id RAA26171 for ; Sun, 15 Dec 1996 17:17:31 -0800 (PST) Received: from spinner.DIALix.COM (peter@localhost.DIALix.oz.au [127.0.0.1]) by spinner.DIALix.COM (8.8.4/8.8.4) with ESMTP id JAA24385; Mon, 16 Dec 1996 09:16:34 +0800 (WST) Message-Id: <199612160116.JAA24385@spinner.DIALix.COM> X-Mailer: exmh version 1.6.9 8/22/96 To: Terry Lambert cc: freebsd-hackers@freebsd.org Subject: Re: poll(2) In-reply-to: Your message of "Sun, 15 Dec 1996 13:53:59 MST." <199612152053.NAA23897@phaeton.artisoft.com> Date: Mon, 16 Dec 1996 09:16:33 +0800 From: Peter Wemm Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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