X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Message-ID: <002601c92161$6f008860$0200a8c0@whiterabc2znlh>
From: "Hirokazu Yamamoto" <ocean-city@m2.ccsnet.ne.jp>
To: <cygwin@cygwin.com>
References: <003301c92110$336cee20$0200a8c0@whiterabc2znlh> <48DF3317.5060300@sh.cvut.cz>
Subject: Re: crash if fork(2) from another thread
Date: Sun, 28 Sep 2008 20:57:51 +0900
MIME-Version: 1.0
Content-Type: text/plain; 	charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Outlook Express 6.00.2800.1933
X-IsSubscribed: yes
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

> I think this is not allowed in here. You can only do async-signal-safe
stuff
> in the child. IO is AFAIK not in that category. Basically, the only thing
you
>  can safely do in the child process is to call exec().

Thank you for reply. I found similar info in MacOSX doc. (in CAVEATS)
http://developer.apple.com/documentation/Darwin/Reference/ManPages/man2/fork.2.html

I encountered this crash while investigating python's
trunk/Lib/test/test_threading.py
ThreadJoinOnShutdown (test_3_join_in_forked_from_thread) which hangs on
cygwin.

It's calling thread stuff and IO on child process,  maybe it's not good
practice...


--
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/

