Date: Wed, 17 Feb 1999 21:42:48 -0700 From: Warner Losh <imp@village.org> To: Dag-Erling Smorgrav <des@flood.ping.uio.no> Cc: "Daniel C. Sobral" <dcs@newsguy.com>, Matthew Dillon <dillon@apollo.backplane.com>, Christoph Kukulies <kuku@gilberto.physik.RWTH-Aachen.DE>, Peter Wemm <peter@netplex.com.au>, Terry Lambert <tlambert@primenet.com>, hackers@FreeBSD.ORG Subject: Re: portability of shm, mmap, pipes and socket IPC Message-ID: <199902180442.VAA64894@harmony.village.org> In-Reply-To: Your message of "10 Feb 1999 16:02:24 %2B0100." <xzpww1q9u9r.fsf@flood.ping.uio.no> References: <xzpww1q9u9r.fsf@flood.ping.uio.no> <199902092246.PAA10658@usr02.primenet.com> <199902100403.MAA55849@spinner.netplex.com.au> <19990210085847.A11710@gil.physik.rwth-aachen.de> <199902100907.BAA79553@apollo.backplane.com> <xzp1zjybabz.fsf@flood.ping.uio.no> <36C19CC9.62FAA6F7@newsguy.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <xzpww1q9u9r.fsf@flood.ping.uio.no> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199902180442.VAA64894>