This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: fork() + file descriptor bug in 1.7.27(0.271/5/3) 2013-12-09 11:54
- From: tednolan at bellsouth dot net
- To: cygwin at cygwin dot com
- Date: Fri, 17 Jan 2014 15:37:39 -0500
- Subject: Re: fork() + file descriptor bug in 1.7.27(0.271/5/3) 2013-12-09 11:54
- Authentication-results: sourceware.org; auth=none
- References: <831845 dot 98759 dot bm at smtp116 dot sbc dot mail dot ne1 dot yahoo dot com> <52D55D96 dot 8070407 at redhat dot com> <946338 dot 89157 dot bm at smtp116 dot sbc dot mail dot ne1 dot yahoo dot com> <52D98E1D dot 8010907 at redhat dot com>
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