X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Message-ID: <002501c922da$bde360e0$0200a8c0@whiterabc2znlh> From: "Hirokazu Yamamoto" To: References: <003301c92110$336cee20$0200a8c0 AT whiterabc2znlh> <48DF3317 DOT 5060300 AT sh DOT cvut DOT cz> <20080928152527 DOT GA2219 AT ednor DOT casa DOT cgf DOT cx> <48DFA78A DOT 3020506 AT sh DOT cvut DOT cz> <20080928162701 DOT GB2219 AT ednor DOT casa DOT cgf DOT cx> <002901c92241$9cfc7860$0200a8c0 AT whiterabc2znlh> <20080930011632 DOT GA5668 AT ednor DOT casa DOT cgf DOT cx> <20080930030431 DOT GA29887 AT ednor DOT casa DOT cgf DOT cx> Subject: Re: crash if fork(2) from another thread Date: Tue, 30 Sep 2008 17:58:43 +0900 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook Express 6.00.2800.1933 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com >>I also confirmed previous code worked fine with Cygwin 1.7. > >>But attached code hangs on Cygwin 1.7. (Actually this is what > >>test_3_join_in_forked_from_thread is doing) > > > >I can duplicate this. I'll investigate it as I have time. > > It should be fixed in the latest snapshot. Thanks, I confirmed the problem was fixed on snapshot. test_3_join_in_forked_from_thread doesn't hang now. The test still fails, but this is because fork() copies only calling thread, not main thread which will call fflush(stdout) on program termination. This is allowed in POSIX, so expected behavior. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/