Date: Wed, 10 Feb 1999 01:07:44 -0800 (PST) From: Matthew Dillon <dillon@apollo.backplane.com> To: Christoph Kukulies <kuku@gilberto.physik.RWTH-Aachen.DE> Cc: Peter Wemm <peter@netplex.com.au>, Terry Lambert <tlambert@primenet.com>, Christoph Kukulies <kuku@gilberto.physik.RWTH-Aachen.DE>, hackers@FreeBSD.ORG Subject: Re: portability of shm, mmap, pipes and socket IPC Message-ID: <199902100907.BAA79553@apollo.backplane.com> References: <199902092246.PAA10658@usr02.primenet.com> <199902100403.MAA55849@spinner.netplex.com.au> <19990210085847.A11710@gil.physik.rwth-aachen.de>
next in thread | previous in thread | raw e-mail | index | archive | help
:Seems I have kicked off an avalanche :-) : :Someone was mentioning in an off-net discussion with some linux :guys, that when using timeval struct in select the time structure :members were dealt differently (units, offsets? - not clear what :my discussion partner meant, but it alarmed me a bit). But OTOH, :when XFree86 is running on both all I'd have to do is looking perhaps :in the XFree86 source.. : :-- :Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de Ah yes, I remember it well. select(fd, rfds, wfds, xfds, tv) The problem is that linux updates the timeval structure on return, telling you how much time is left. Many programs assumed that tv was const... i.e. not modified by the call, and so would initialize the structure once then use it multiple times. I don't know what linux does now, but most programs these days reinitialize tv on each select() call in order to work around any potential problem. -Matt Matthew Dillon <dillon@backplane.com> 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?199902100907.BAA79553>