Date: Mon, 14 Dec 1998 06:55:54 +0100 (CET) From: List User <listuser@netspace.net.au> To: freebsd-current@FreeBSD.org Message-ID: <199812140555.GAA09287@doorway.home.lan>
next in thread | raw e-mail | index | archive | help
Newsgroups: freebsd.current Path: root From: "John Saunders" <john.saunders@scitec.com.au> Subject: RE: inetd: realloc/free bug Content-Type: text/plain; charset="iso-8859-1" X-Mimeole: Produced By Microsoft MimeOLE V4.72.2106.4 Received: from saruman (saruman.scitec.com.au [203.17.182.108]) by mailhub.scitec.com.au (8.6.12/8.6.9) with SMTP id QAA05843 for <freebsd-current@FreeBSD.ORG>; Mon, 14 Dec 1998 16:47:31 +1100 To: "FreeBSD current" <freebsd-current> Sender: owner-freebsd-current@FreeBSD.ORG Content-Transfer-Encoding: 7bit Organization: Private News Host Precedence: bulk Importance: Normal Message-ID: <002f01be2725$3dab6af0$6cb611cb@saruman.scitec.com.au> X-Msmail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 Delivered-To: vmailer-current@freebsd.org X-Uidl: a388a55e70e8f5b4a7f5072b4b704fd8 X-Loop: FreeBSD.ORG X-Priority: 3 (Normal) Mime-Version: 1.0 In-Reply-To: <199812110722.AAA00650@harmony.village.org> Date: Mon, 14 Dec 1998 05:47:31 GMT > Linux implemented the timeval stomping version of select. It was the > first OS to do this. At the time they claimed that BSD 4.4 would be > doing this and that they were going to be compatible with that, plus > it was listed as a bug. BSD 4.4 came out, and it didn't change this > part of the interface. There were boatloads of programs that were > inexpertly ported to Linux that exhibited cpu eating problems. Turns > out that they weren't robust enough to deal with the timeval stomping > interface. In time they created a bsd_select, which was what all user > progams used. I think it is possible to get the "new" linux behavior, > but I don't know how. Actually the Linux version of select checks a bit in the personality flag called "STICKY_TIMEOUTS". If this flag is set then the timeout value is not overwritten. Currently only the Sun SPARC port of Linux sets this bit, at least in Linux 2.0.36 that is. There is a version of select in libbsd.a which basically copies the timeout to a local variable and calls the Linux native select. So only the local copy gets altered leaving the original passed in version intact. You need to link against libbsd.a to get this behaviour. Speaking of this, I wonder what FreeBSD when running Linux binaries under emulation? Cheers. -- . +-------------------------------------------------------+ ,--_|\ | John Saunders mailto:John.Saunders@scitec.com.au | / Oz \ | SCITEC LIMITED Phone +61294289563 Fax +61294289933 | \_,--\_/ | "By the time you make ends meet, they move the ends." | v +-------------------------------------------------------+ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199812140555.GAA09287>