X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:from:to:subject:in-reply-to
	:references:date; q=dns; s=default; b=QNM2N1Aq1ZO5nvoI/cL3jR8k77
	d+LtSWmw0YnKVbRu/dIbk9ru2zpJ0u+Fpmy+Cf1vpSGn9+E6VvNFn0fJWrwCsPUg
	KEjCIXRZ/7V+75JsltRaI4NwGlySM2Km5LvXtgcWm08vAQbTYP1XUFiWOGRQVTVY
	9HkmBF2sm11YCbSVg=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:from:to:subject:in-reply-to
	:references:date; s=default; bh=JSnoEqCHxNfcgOXzc2f26768lns=; b=
	eEcKOXlEtGm139AGwdYecNYsh9j3eFSj/1roQQ23PmfCjcTUKjV/Ayo3l2/2uV/C
	q0xFvSnVnBS+iTIdoXnnYZLUlh8Q69ue7JhriMsNu9Lb8WqUNGT8ItEHkiY/PeRT
	5u4Vw+Q2iqR+nIAvCL4snKWOTnnm/PPAbMp53Gu3VIs=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2
X-HELO: nm2-vm2.access.bullet.mail.gq1.yahoo.com
Message-ID: <660338.281.bm@smtp113.sbc.mail.ne1.yahoo.com>
X-Yahoo-SMTP: BDVluRmswBBpb4.UU1_zlPhs_ysfXcBVjBNXyWpyS_6pPgE-
X-Rocket-Received: from solabel10.tnolan.com (tednolan@74.243.198.131 with plain [98.138.84.52])        by smtp113.sbc.mail.ne1.yahoo.com with SMTP; 17 Jan 2014 21:02:42 +0000 UTC
From: tednolan@bellsouth.net
To: cygwin@cygwin.com
Subject: Re: fork() + file descriptor bug in 1.7.27(0.271/5/3) 2013-12-09 11:54
In-reply-to: <52D98E1D.8010907@redhat.com>
References: <831845.98759.bm@smtp116.sbc.mail.ne1.yahoo.com> <52D55D96.8070407@redhat.com> <946338.89157.bm@smtp116.sbc.mail.ne1.yahoo.com> <52D98E1D.8010907@redhat.com>
Comments: In-reply-to Eric Blake <eblake@redhat.com>   message dated "Fri, 17 Jan 2014 13:10:05 -0700."
Date: Fri, 17 Jan 2014 15:37:39 -0500
X-IsSubscribed: yes

In message <52D98E1D.8010907@redhat.com>you write:
>
>No.  You have to fix things _in the parent, before the fork()_ for
>everything to be hunky-dory.  The easiest way to do that is to
>fflush(NULL) before fork()ing.
>

You learn something new every day.

Usually just after you needed to know it.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

