From owner-freebsd-python@FreeBSD.ORG Tue Dec 16 20:48:25 2008 Return-Path: Delivered-To: python@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5AB3E106567A for ; Tue, 16 Dec 2008 20:48:25 +0000 (UTC) (envelope-from jpaetzel@FreeBSD.org) Received: from mail.tcbug.org (mail.tcbug.org [216.243.150.78]) by mx1.freebsd.org (Postfix) with ESMTP id 3F0D18FC2F for ; Tue, 16 Dec 2008 20:48:25 +0000 (UTC) (envelope-from jpaetzel@FreeBSD.org) Received: from roadrash.tcbug.org (c-24-118-145-206.hsd1.mn.comcast.net [24.118.145.206]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.tcbug.org (Postfix) with ESMTPSA id 7314F169E519; Tue, 16 Dec 2008 14:30:23 -0600 (CST) Message-ID: <4948100D.2080004@FreeBSD.org> Date: Tue, 16 Dec 2008 14:31:09 -0600 From: Josh Paetzel User-Agent: Thunderbird 2.0.0.18 (Macintosh/20081105) MIME-Version: 1.0 To: Andriy Pylypenko References: <4941231E.4050408@sippysoft.com> In-Reply-To: <4941231E.4050408@sippysoft.com> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: python@FreeBSD.org Subject: Re: Problem with signals in threads in Python X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Dec 2008 20:48:25 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Andriy Pylypenko wrote: > Hello, > > Almost a year ago I've created an issue in Python's bugtracker but the > issue seems to be stuck since then so I'm sending the patch here in hope > it could be included in ports collection. > > In short there is a problem in the Python that can be seen under FreeBSD > but not under MacOSX or Linux. If a Python program started a thread in > background then it can be impossible to interrupt the program with > Ctrl-C. Here is an example of such script: > *snip* Andriy, We've been using your patch in production for a while now, it works well for us. I've been contemplating including it in the FreeBSD python port, in fact I mailed this list about it about a week before you did. At this point I'm trying to decide if the patch should be optional or not. We know of no reason to make it optional, do you? - -- Thanks, Josh Paetzel PGP: 8A48 EF36 5E9F 4EDA 5ABC 11B4 26F9 01F1 27AF AECB -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (Darwin) iEYEARECAAYFAklIEA0ACgkQJvkB8SevrsvqVACggnKqZncxjW+YMUtbuSXT8/K+ VakAnjgxg7jc0ZGV/VFE3rQEtWlg8wCd =lPSn -----END PGP SIGNATURE-----