From owner-freebsd-hackers Wed Feb 17 20:40:14 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with SMTP id BC21911394 for ; Wed, 17 Feb 1999 20:40:10 -0800 (PST) (envelope-from imp@village.org) Received: from harmony [10.0.0.6] by rover.village.org with esmtp (Exim 1.71 #1) id 10DLFs-0007Vf-00; Wed, 17 Feb 1999 21:40:04 -0700 Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.2/8.8.3) with ESMTP id VAA64894; Wed, 17 Feb 1999 21:42:49 -0700 (MST) Message-Id: <199902180442.VAA64894@harmony.village.org> To: Dag-Erling Smorgrav Subject: Re: portability of shm, mmap, pipes and socket IPC Cc: "Daniel C. Sobral" , Matthew Dillon , Christoph Kukulies , Peter Wemm , Terry Lambert , hackers@FreeBSD.ORG In-reply-to: Your message of "10 Feb 1999 16:02:24 +0100." References: <199902092246.PAA10658@usr02.primenet.com> <199902100403.MAA55849@spinner.netplex.com.au> <19990210085847.A11710@gil.physik.rwth-aachen.de> <199902100907.BAA79553@apollo.backplane.com> <36C19CC9.62FAA6F7@newsguy.com> Date: Wed, 17 Feb 1999 21:42:48 -0700 From: Warner Losh Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message Dag-Erling Smorgrav writes: : Yep, man pages are specs, and when the spec says tv may be modified by : select(), that means you can't expect it to remain untouched. That's in the bugs section: 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. Notice "should" and "may be" It doesn't say "Will" or "does". : On the contrary, it is extremely useful for implementing higher-level : timeouts. If you want to see the new installer come true, I need to : implement protocol-level timeouts in libfetch, and that means either : add a lot of gettimeofday() logic or fix select() to modify tv. Even if that represents an unavoidable race condition? Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message