From owner-freebsd-current Sun Dec 13 22:55:07 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA06333 for freebsd-current-outgoing; Sun, 13 Dec 1998 22:28:45 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from mailb.telia.com (mailb.telia.com [194.22.194.6]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA06134 for ; Sun, 13 Dec 1998 22:27:43 -0800 (PST) (envelope-from listuser@netspace.net.au) Received: from d1o1.telia.com (root@d1o1.telia.com [195.67.240.241]) by mailb.telia.com (8.8.8/8.8.8) with ESMTP id HAA08919 for ; Mon, 14 Dec 1998 07:27:32 +0100 (CET) Received: from doorway.home.lan (t6o1p59.telia.com [195.67.241.119]) by d1o1.telia.com (8.8.8/8.8.5) with ESMTP id HAA19371 for ; Mon, 14 Dec 1998 07:27:31 +0100 (CET) Received: (from listuser@localhost) by doorway.home.lan (8.8.8/8.8.7) id GAA09287 for freebsd-current@FreeBSD.org; Mon, 14 Dec 1998 06:55:54 +0100 (CET) (envelope-from listuser) Date: Mon, 14 Dec 1998 06:55:54 +0100 (CET) From: List User Message-Id: <199812140555.GAA09287@doorway.home.lan> To: freebsd-current@FreeBSD.org Sender: owner-freebsd-current@FreeBSD.org Precedence: bulk X-Loop: FreeBSD.ORG Newsgroups: freebsd.current Path: root From: "John Saunders" 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 ; Mon, 14 Dec 1998 16:47:31 +1100 To: "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