From owner-freebsd-current Thu Dec 10 23:17:32 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA27443 for freebsd-current-outgoing; Thu, 10 Dec 1998 23:17:32 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from apollo.backplane.com (apollo.backplane.com [209.157.86.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA27418 for ; Thu, 10 Dec 1998 23:17:29 -0800 (PST) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.9.1/8.9.1) id XAA35358; Thu, 10 Dec 1998 23:17:13 -0800 (PST) (envelope-from dillon) Date: Thu, 10 Dec 1998 23:17:13 -0800 (PST) From: Matthew Dillon Message-Id: <199812110717.XAA35358@apollo.backplane.com> To: Warner Losh Cc: Archie Cobbs , jwd@unx.sas.com, freebsd-current@FreeBSD.ORG Subject: Re: inetd: realloc/free bug References: <199812110659.WAA35073@apollo.backplane.com> <199812110654.WAA25455@bubba.whistle.com> <199812110711.AAA00506@harmony.village.org> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I seem to recall linux returning the time remaining a long time ago, but I think they ripped it out. I don't have a linux box handy to test the linux current kernel. I definitely think it's a mistake to change select()'s timeout operation, too many programs pre-set the timeval and assume it will not be changed on multiple calls to select(). If we were to implement a returned-time it would have to be with a new system call. -Matt : :In message <199812110659.WAA35073@apollo.backplane.com> Matthew Dillon writes: :: :By the way, from man select(2): :: : :: : BUGS :: : select() should probably return the time remaining from the original :: : timeout, if any, by modifying the time value in place. This may be im- :: : plemented in future versions of the system. Thus, it is unwise to assume :: : that the timeout value will be unmodified by the select() call. :: : :: :Is this ever going to be implemented? I think this warning's been :: :around for at least 10 years now.. : :No. It breaks too many things. : :Warner : :To Unsubscribe: send mail to majordomo@FreeBSD.org :with "unsubscribe freebsd-current" in the body of the message : Matthew Dillon Engineering, HiWay Technologies, Inc. & BEST Internet Communications & God knows what else. (Please include original email in any response) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message