From owner-freebsd-current Sat Mar 30 22:46:52 2002 Delivered-To: freebsd-current@freebsd.org Received: from obsecurity.dyndns.org (adsl-64-169-104-17.dsl.lsan03.pacbell.net [64.169.104.17]) by hub.freebsd.org (Postfix) with ESMTP id DF50837B417; Sat, 30 Mar 2002 22:46:48 -0800 (PST) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 6A94466D19; Sat, 30 Mar 2002 22:46:48 -0800 (PST) Date: Sat, 30 Mar 2002 22:46:48 -0800 From: Kris Kennaway To: Kris Kennaway Cc: "M. Warner Losh" , current@FreeBSD.org, peter@FreeBSD.org Subject: Re: stdout changes break some ports Message-ID: <20020330224648.A93819@xor.obsecurity.org> References: <20020324173513.A75429@xor.obsecurity.org> <20020324.184313.30925676.imp@village.org> <20020324175436.A75804@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="a8Wt8u1KmwUX3Y2C" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020324175436.A75804@xor.obsecurity.org>; from kris@obsecurity.org on Sun, Mar 24, 2002 at 05:54:36PM -0800 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --a8Wt8u1KmwUX3Y2C Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Mar 24, 2002 at 05:54:36PM -0800, Kris Kennaway wrote: > On Sun, Mar 24, 2002 at 06:43:13PM -0700, M. Warner Losh wrote: >=20 > > : David O'Brien committed a workaround to the clog port yesterday to > > : move the initializer to main() instead of trying to do it statically. > > :=20 > > : Is this something which is supposed to work? > >=20 > > No. This isn't something that is guaranteed to work per the > > standards, iirc. The proper fix is to put the initializer in main. >=20 > OK. Someone needs to go and fix those 84 ports then. How does one fix this in a library? I've been moving the initialization to main() for applications. Kris --a8Wt8u1KmwUX3Y2C Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE8prDXWry0BWjoQKURAqbZAJ4+saHPXYK9IwEb8xCri3QhoSPt8gCg0++c ZWXnYqptGzDZ8VERaB2egDU= =PVP4 -----END PGP SIGNATURE----- --a8Wt8u1KmwUX3Y2C-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message