From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25619 invoked by alias); 17 Jan 2014 20:11:33 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 25608 invoked by uid 89); 17 Jan 2014 20:11:32 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 17 Jan 2014 20:11:31 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s0HKBTXW020369 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 17 Jan 2014 15:11:30 -0500 Received: from [10.3.113.148] (ovpn-113-148.phx2.redhat.com [10.3.113.148]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id s0HKBT42000882 for ; Fri, 17 Jan 2014 15:11:29 -0500 Message-ID: <52D98E70.4030801@redhat.com> Date: Fri, 17 Jan 2014 20:11:00 -0000 From: Eric Blake User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: fork() + file descriptor bug in 1.7.27(0.271/5/3) 2013-12-09 11:54 References: <831845.98759.bm@smtp116.sbc.mail.ne1.yahoo.com> <52D55D96.8070407@redhat.com> <946338.89157.bm@smtp116.sbc.mail.ne1.yahoo.com> In-Reply-To: OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="S1SO3p5WL1io7kXHBNk4M5M66A6rjkVCv" X-IsSubscribed: yes X-SW-Source: 2014-01/txt/msg00228.txt.bz2 --S1SO3p5WL1io7kXHBNk4M5M66A6rjkVCv Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-length: 445 On 01/14/2014 09:53 PM, Lord Laraby wrote: > My two cents say, since the child is not referencing 'fp' at all, > there is no violation of the POSIX semantics in this situation. But the child _IS_ referencing 'fp', via the implicit fflush(NULL) done by exit(). If you use _exit() to bypass that implicit fflush, things are a lot nicer. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --S1SO3p5WL1io7kXHBNk4M5M66A6rjkVCv Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" Content-length: 604 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJS2Y5wAAoJEKeha0olJ0NqduUIAKfHy6KUZkSzUmdFWco5OIBi t1FzbJfNPHc/IIwuylTvaVsCm8CFHuaZGwyVDXxT8MGTUrbnYsvtFiaT1ZJfUMFI CQ1IBiLGkCcsRUjHK4nlk8N1mIIeIC3gLyJqAsTsQAQkmId3w+dbxIsg6lD+AY6m IyTkcF1o5NywePqGIkFj86KRrEXFpvL6EqPF+30F6SUG+aSCmgAfEsDuiGPX1IXm 98Oclg+YGjj5m/YFwzAIj+NO96cuWNxgJ/ng+B++Nz3+5GHxnZE3JKg1XF8zh+sR 4R6ZbK6zDphwZBZr81/lvJKpPZUurVF/+6KgrqerlXHwhfzToWdNLU4SVz1TtL8= =Udrk -----END PGP SIGNATURE----- --S1SO3p5WL1io7kXHBNk4M5M66A6rjkVCv--