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: 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 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120714 Thunderbird/14.0 MIME-Version: 1.0 To: andrea crotti Subject: Re: Pass data to a subprocess References: <5017EFB0.6080608@shopzeus.com> <5018E687.9000105@shopzeus.com> <50190215.7080608@shopzeus.com> In-Reply-To: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 > 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.