Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.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.050 X-Spam-Evidence: '*H*': 0.90; '*S*': 0.00; 'fork': 0.09; 'unix,': 0.09; 'cc:addr:python-list': 0.10; ':-)': 0.13; 'test.': 0.17; '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; 'skip:m 30': 0.26; 'message-id:@mail.gmail.com': 0.27; "doesn't": 0.28; 'actual': 0.28; 'run': 0.28; 'probably': 0.29; "i'm": 0.29; 'that.': 0.30; 'could': 0.32; 'mixed': 0.33; 'subject:data': 0.33; 'another': 0.33; 'received:google.com': 0.34; 'received:209.85': 0.35; 'there': 0.35; 'created': 0.36; 'but': 0.36; 'should': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'sure': 0.38; 'header:Received:5': 0.40; 'think': 0.40; 'your': 0.60; 'unnecessary': 0.65; 'nagy': 0.84; '(running': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=km0/3/7AedhlYoSnyAxEXxSVPgYrFN8i27Ukj7GNLnY=; b=cdgB//PksPJYNV0WMoll36Ee2q0yncNN/KTlv1Eg3m7wRGVH6EXt7yj8pymPkzdsc7 a7tNU2ojGdY6WhX/K8oteS0IoEIgShYiuof6QLfFf0aO3nOKCkkSvOPqW3u5pJ4Ukcwu BR8/98cjPPmeoJycnrzUVY6GngD5WKmnHizaZSf+ASlQ220xHgM8s7w6Dyg8OSkyVG6I miZWxxFQwfvcgjCR0q6sHrLdYDzEBcv//OvZJbxBS72684AnDvu52i4O3N2rWGGFzWjV 6fHuqvp8cZ+FZ8V3Z1Y578CawheitQho4cNeyX+MV+359eth+x86LB6G9iRtL25VnDyl cCmg== MIME-Version: 1.0 In-Reply-To: <50190215.7080608@shopzeus.com> References: <5017EFB0.6080608@shopzeus.com> <5018E687.9000105@shopzeus.com> <50190215.7080608@shopzeus.com> Date: Wed, 1 Aug 2012 11:32:58 +0100 Subject: Re: Pass data to a subprocess From: andrea crotti To: Laszlo Nagy Content-Type: text/plain; charset=ISO-8859-1 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: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1343817179 news.xs4all.nl 6850 [2001:888:2000:d::a6]:60724 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:26343 2012/8/1 Laszlo Nagy : > On thing is sure: os.fork() doesn't work under Microsoft Windows. Under > Unix, I'm not sure if os.fork() can be mixed with > multiprocessing.Process.start(). I could not find official documentation on > that. This must be tested on your actual platform. And don't forget to use > Queue.get() in your test. :-) > 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)