From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 14 11:03:31 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D713F1065670 for ; Fri, 14 Sep 2012 11:03:31 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4B18B8FC0A for ; Fri, 14 Sep 2012 11:03:31 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TCTgE-0004tc-Ly for freebsd-hackers@freebsd.org; Fri, 14 Sep 2012 13:03:26 +0200 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 14 Sep 2012 13:03:26 +0200 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 14 Sep 2012 13:03:26 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-hackers@freebsd.org From: Ivan Voras Date: Fri, 14 Sep 2012 13:03:11 +0200 Lines: 38 Message-ID: References: <035514CA-81D6-407F-A2C1-51A9FB0E3A74@cederstrand.dk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigBB57C1BA0D64AA99FC0B2170" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:14.0) Gecko/20120812 Thunderbird/14.0 In-Reply-To: <035514CA-81D6-407F-A2C1-51A9FB0E3A74@cederstrand.dk> X-Enigmail-Version: 1.4.3 Subject: Re: Change vfork() to posix_spawn()? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Sep 2012 11:03:31 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigBB57C1BA0D64AA99FC0B2170 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 14/09/2012 09:49, Erik Cederstrand wrote: > Hello hackers, >=20 > I'm looking through the Clang Analyzer scans on http://scan.freebsd.you= r.org/freebsd-head looking for false positives to report back to LLVM. Th= ere are quite a list of reports suggesting to change vfork() calls to pos= ix_spawn(). Example from /bin/rpc: http://scan.freebsd.your.org/freebsd-h= ead/bin.rcp/2012-09-12-amd64/report-nsOV80.html#EndPath >=20 > I know nothing about this but I can see fork and posix_spawn have been = discussed on this list previously. Is this a legitimate warning (in this = case and in general in FreeBSD base)? Currently (on 9-stable at least), posix_spawn() is implemented as a wrapper around vfork(), so I doubt replacing one with the other would do much. --------------enigBB57C1BA0D64AA99FC0B2170 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAlBTDu8ACgkQ/QjVBj3/HSxuiwCffNvAgiKPU9grWind829tY9Ll EjkAn1Qw8j2WFyR61Zr4qpYY2NfEkQnf =D9gh -----END PGP SIGNATURE----- --------------enigBB57C1BA0D64AA99FC0B2170--