delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/09/17/20:17:52

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
X-Originating-IP: [63.102.70.70]
X-Originating-Email: [wjournkk AT hotmail DOT com]
X-Sender: wjournkk AT hotmail DOT com
From: "Dan H" <wjournkk AT hotmail DOT com>
To: cygwin AT cygwin DOT com
Subject: python 2.3.4-1 on cygwin 1.5.11-1 exits when Thread exits
Date: Sat, 18 Sep 2004 00:17:12 +0000
Mime-Version: 1.0
Message-ID: <BAY15-F13kjbZpLdnoH0000bde8@hotmail.com>
X-OriginalArrivalTime: 18 Sep 2004 00:17:13.0355 (UTC) FILETIME=[D8B035B0:01C49D14]

Whenever any of my python threads exits, python exits, too (regardless of 
the main thread, for example). See below for details. How can I fix this?

Transcript of a python session on cygwin 1.5.11-1:

% python2.3
Python 2.3.4 (#1, Jun 13 2004, 11:21:03)
[GCC 3.3.1 (cygming special)] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
>>>from threading import Thread
>>>t = Thread()
>>>t.start()
>>>%

i.e. when thread t exited, so did python.

Doing the same thing on Linux, python does not exit:

% uname -srm
Linux 2.6.6-1-386 i686
% python2.3
Python 2.3.4 (#2, Jul  5 2004, 09:15:05)
[GCC 3.3.4 (Debian 1:3.3.4-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>from threading import Thread
>>>t = Thread()
>>>t.start()
>>>print "foo"
foo
>>>

_________________________________________________________________
On the road to retirement? Check out MSN Life Events for advice on how to 
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement


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