delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/09/30/04:59:32

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <002501c922da$bde360e0$0200a8c0@whiterabc2znlh>
From: "Hirokazu Yamamoto" <ocean-city AT m2 DOT ccsnet DOT ne DOT jp>
To: <cygwin AT cygwin DOT com>
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
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: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019