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


Groups > comp.lang.python > #26345

Re: Pass data to a subprocess

Path csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder3.cambriumusenet.nl!feed.tweaknews.nl!194.109.133.85.MISMATCH!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <gandalf@shopzeus.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.116
X-Spam-Level *
X-Spam-Evidence '*H*': 0.77; '*S*': 0.00; 'fork': 0.09; 'cc:addr :python-list': 0.10; 'windows': 0.19; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply- To:1': 0.25; 'header:User-Agent:1': 0.26; 'run': 0.28; 'probably': 0.29; "i'm": 0.29; 'that.': 0.30; 'subject:data': 0.33; 'another': 0.33; 'there': 0.35; 'created': 0.36; 'but': 0.36; 'should': 0.36; 'subject:: ': 0.38; 'sure': 0.38; 'received:192': 0.39; 'received:192.168': 0.40; 'think': 0.40; 'unnecessary': 0.65; 'afraid': 0.66; 'received:204': 0.72; '(running': 0.91
Date Wed, 01 Aug 2012 12:40:17 +0200
From Laszlo Nagy <gandalf@shopzeus.com>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120714 Thunderbird/14.0
MIME-Version 1.0
To andrea crotti <andrea.crotti.0@gmail.com>
Subject Re: Pass data to a subprocess
References <CAF_E5JY5FgEJub7tNNzZEj0tri8Z7oPZUSLOLtD+5f0t7Yv+Yg@mail.gmail.com> <CAF_E5JY2sEsauXM-teW4hTHePqFCYK6z+9oLMZcjVWFyYs+gKg@mail.gmail.com> <5017EFB0.6080608@shopzeus.com> <CAF_E5JaEHxsjKoHRhZLzh+YdPU8UqKHae9efCsP7zEvm_37+2w@mail.gmail.com> <5018E687.9000105@shopzeus.com> <CAF_E5Jb83D6Uk-HG0sq5urTfxh6z9_fw+RR2ZEmesWTjEFR4-A@mail.gmail.com> <50190215.7080608@shopzeus.com> <CAF_E5JZSp1pADuwbXKtarQ1O5K+U4d1RA6GLMuAakg8bjj=5uQ@mail.gmail.com>
In-Reply-To <CAF_E5JZSp1pADuwbXKtarQ1O5K+U4d1RA6GLMuAakg8bjj=5uQ@mail.gmail.com>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
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.2816.1343817623.4697.python-list@python.org> (permalink)
Lines 12
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1343817623 news.xs4all.nl 6861 [2001:888:2000:d::a6]:37074
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:26345

Show key headers only | View raw



> Yes I know we don't care about Windows for this particular project..
> I think mixing multiprocessing and fork should not harm, but probably
> is unnecessary since I'm already in another process after the fork so
> I can just make it run what I want.
>
> Otherwise is there a way to do same thing only using multiprocessing?
> (running a process that is detachable from the process that created it)
>
I'm afraid there is no way to do that. I'm not even sure if 
multiprocessing.Queue will work if you detach a forked process.

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


Thread

Re: Pass data to a subprocess Laszlo Nagy <gandalf@shopzeus.com> - 2012-08-01 12:40 +0200

csiph-web