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


Groups > comp.lang.python > #36999

Re: Inconsistent behaviour of methods waiting for child process

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!feed.xsnews.nl!border-1.ams.xsnews.nl!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <matt.walker.jones@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.016
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'exception': 0.03; 'exit': 0.07; 'python': 0.09; 'behave': 0.09; 'oserror': 0.09; 'retry': 0.09; 'subject:process': 0.09; 'exit)': 0.16; 'experiments': 0.16; 'wrote:': 0.17; 'jan': 0.18; 'are:': 0.20; 'to:name:python- list@python.org': 0.20; "i've": 0.23; 'header:In-Reply-To:1': 0.25; 'skip:m 30': 0.26; 'am,': 0.27; 'message- id:@mail.gmail.com': 0.27; 'quiet': 0.29; 'url:mailman': 0.29; 'fri,': 0.30; 'code': 0.31; 'towards': 0.32; 'url:python': 0.32; 'url:listinfo': 0.32; 'to:addr:python-list': 0.33; 'hi,': 0.33; 'version': 0.34; 'received:google.com': 0.34; 'done': 0.34; 'received:209.85': 0.35; 'something': 0.35; 'there': 0.35; 'url:org': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'to:addr:python.org': 0.39; 'url:mail': 0.40; 'remove': 0.61; 'charset:iso-8859-2': 0.61; 'movement': 0.62; 'different': 0.63; 'information': 0.63; 'more': 0.63; 'interrupted': 0.65; 'special': 0.73; '2013': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=2Z9n5SskbPcrA4DXyJuA7q8gduxHp/M2CI+lzXlrIEc=; b=rYsM2/AaBoYps5leo6TnrF/ZxRkakEOhoXimBY7gIjTBhAoVSqf6vV4y/1UIIUdmJC K2rVllYlUJWt08caLc+xe9xtxFXJrrd5sIfRcqhyw5DGVj3YruhMAugkb/ZoymNw3RXK eGlT2p8VL6RKM5W6wlbSr5JKz3/+mhceK8JFoBAjfcxfcV/QalQSoXt5Z5PiKsoK4HPh 7wRW6ZGB9sejvZMN4h9Uxmkc++aOjtQqa9fFzn/ON7j5jM3sjalGSjrX3uedxOCzr820 ffLuRWY4aPU4kAiDVYdWT/qymEa4vUzd4ebBL755V43hK7Cq9LzeANMZfkCQEPeUhxqY 4OLw==
X-Received by 10.60.1.73 with SMTP id 9mr6845901oek.130.1358518249325; Fri, 18 Jan 2013 06:10:49 -0800 (PST)
MIME-Version 1.0
In-Reply-To <20130118120438.GA9862@magazyn-ziarno.chello.pl>
References <20130118120438.GA9862@magazyn-ziarno.chello.pl>
From Matt Jones <matt.walker.jones@gmail.com>
Date Fri, 18 Jan 2013 08:10:29 -0600
Subject Re: Inconsistent behaviour of methods waiting for child process
To "python-list@python.org" <python-list@python.org>
Content-Type multipart/alternative; boundary=e89a8fb20660ac05c604d390ad63
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 <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.630.1358518251.2939.python-list@python.org> (permalink)
Lines 95
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1358518251 news.xs4all.nl 6898 [2001:888:2000:d::a6]:34858
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:36999

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

What version of python and os are you running?

*Matt Jones*


On Fri, Jan 18, 2013 at 6:04 AM, Marcin Szewczyk <python-list@wodny.org>wrote:

> Hi,
>
> I've done some experiments with:
> 1) multiprocessing.Process.join()
> 2) os.waitpid()
> 3) subprocess.Popen.wait()
>
> These three methods behave completely different when interrupted with a
> signal which I find disturbing.
>
> Reactions are:
> 1) exit with no exception or special return code
> 2) OSError exception
> 3) quiet retry (no exit)
>
> The 1) case is very impractical.
>
> Is there any movement towards standardization of those 3?
>
> Am I missing something and there is a way to get more information from
> Process.join()?
>
> --
> Marcin Szewczyk                       http://wodny.org
> mailto:Marcin.Szewczyk@wodny.borg  <- remove b / usuń b
> xmpp:wodny@ubuntu.pl                  xmpp:wodny@jabster.pl
> --
> http://mail.python.org/mailman/listinfo/python-list
>

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


Thread

Re: Inconsistent behaviour of methods waiting for child process Matt Jones <matt.walker.jones@gmail.com> - 2013-01-18 08:10 -0600

csiph-web