Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #73895

Re: threading.Condition.wait() is not catching SIGTERM

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.datemas.de!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <sangeeth.saravanaraj@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.057
X-Spam-Evidence '*H*': 0.89; '*S*': 0.00; 'subject:not': 0.03; 'executed': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'macos': 0.16; 'received:192.168.128': 0.16; 'roy': 0.16; 'wrote:': 0.18; 'all,': 0.19; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'header:In-Reply- To:1': 0.27; 'url:mailman': 0.30; 'code': 0.31; 'url:python': 0.33; 'running': 0.33; 'but': 0.35; 'received:google.com': 0.35; 'version': 0.36; 'url:listinfo': 0.36; 'charset:us-ascii': 0.36; 'url:org': 0.36; 'operating': 0.37; 'message-id:@gmail.com': 0.38; 'depends': 0.38; 'pm,': 0.38; 'does': 0.39; 'url:mail': 0.40; 'header:Message-Id:1': 0.63; 'more': 0.64; 'smith': 0.68; 'behavior': 0.77; 'article': 0.77; 'on?': 0.91; 'interrupted': 0.96
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=JiKzsOaHAhHFgDIoDMtA8436xfMoDo70OFJIhbT7y/c=; b=RIldknfEejeY9gP1upRlNz/GjUoZZjftR7Z7wpxFbkRQxo+8CWjo8TRHdTfDnDd7/H 0HLzBPq18Psc+3ieOcS4biYVT13OyeGctUK4Pkcvcwyakxc8C2HlUcVpiRSGuzvCS305 bXj+rwyN4wFzAxHFih/keyTLPwr2uufBI/pdil79P3nNNtH1mgVmIOqnStxacM/hptky BfN1ihLcUFsQKE9ZY997LXc+EPl3Slh3d3nQ3Xt3N7aC/frKuxP8/q3dlOWc1BSM1HKZ La4lywpcvD8e4Zh5334jJFlY5o4zjz0MtGcgMh+ijMS/ClNfESTFbAhSbFIFhPKvuFsE 1dbg==
X-Received by 10.68.133.163 with SMTP id pd3mr3674320pbb.166.1404383267745; Thu, 03 Jul 2014 03:27:47 -0700 (PDT)
Content-Type text/plain; charset=us-ascii
Mime-Version 1.0 (Mac OS X Mail 7.3 \(1878.2\))
Subject Re: threading.Condition.wait() is not catching SIGTERM
From Sangeeth Saravanaraj <sangeeth.saravanaraj@gmail.com>
In-Reply-To <roy-A625DF.06190003072014@news.panix.com>
Date Thu, 3 Jul 2014 15:57:45 +0530
Content-Transfer-Encoding quoted-printable
References <mailman.11450.1404382552.18130.python-list@python.org> <roy-A625DF.06190003072014@news.panix.com>
To Roy Smith <roy@panix.com>
X-Mailer Apple Mail (2.1878.2)
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.11451.1404383271.18130.python-list@python.org> (permalink)
Lines 25
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1404383271 news.xs4all.nl 2922 [2001:888:2000:d::a6]:45641
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:73895

Show key headers only | View raw


On 03-Jul-2014, at 3:49 pm, Roy Smith <roy@panix.com> wrote:

> In article <mailman.11450.1404382552.18130.python-list@python.org>,
> Sangeeth Saravanaraj <sangeeth.saravanaraj@gmail.com> wrote:
> 
>> Hi All, 
>> 
>> I have the following code which when executed waits to be interrupted by 
>> SIGINT, SIGTERM or SIGQUIT.
> 
> We need more information.  What version of Python are you using?  And, 
> what operating system is this running on?

I am using Python 2.7.7 and running this code on MacOS Darwin Kernel 13.2.0

But does the behavior of threading.Condition.wait() depends on operating system?! 

> -- 
> https://mail.python.org/mailman/listinfo/python-list

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

threading.Condition.wait() is not catching SIGTERM Sangeeth Saravanaraj <sangeeth.saravanaraj@gmail.com> - 2014-07-03 15:45 +0530
  Re: threading.Condition.wait() is not catching SIGTERM Roy Smith <roy@panix.com> - 2014-07-03 06:19 -0400
    Re: threading.Condition.wait() is not catching SIGTERM Sangeeth Saravanaraj <sangeeth.saravanaraj@gmail.com> - 2014-07-03 15:57 +0530
    Re: threading.Condition.wait() is not catching SIGTERM Chris Angelico <rosuav@gmail.com> - 2014-07-03 20:33 +1000

csiph-web