Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder3.xlned.com!newsfeed.xs4all.nl!newsfeed3.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.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'linux,': 0.05; 'unrecognized': 0.07; 'command.': 0.09; 'encodes': 0.09; 'exited': 0.09; 'subject:skip:m 10': 0.09; 'unix,': 0.09; '127': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:Different': 0.16; 'wrote:': 0.17; 'shell': 0.18; 'this:': 0.23; 'script': 0.24; 'header:In-Reply-To:1': 0.25; 'am,': 0.27; 'message-id:@mail.gmail.com': 0.27; 'run': 0.28; 'piece': 0.29; 'code': 0.31; 'url:python': 0.32; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'received:209.85': 0.35; 'but': 0.36; 'url:org': 0.36; 'url:library': 0.36; 'subject:with': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'url:docs': 0.38; 'to:addr:python.org': 0.39; 'more': 0.63; 'information:': 0.74; '2013': 0.84; 'url:system': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=bh/jQF0SXFx7Ee1rMPRvsn+fKFnprzOaMdLU6bgnMo4=; b=CxZQdEJ601ADneSwKMGFoCmpsdHDGMG18125UH3d1D0nlLW6MGn3qgzkfFzTmXeNPQ VBRUqmd8b6gFlPOxPvyzw6ZFo+20ezOPVB/fFyuZRG3Mm4sIy7v9EkGdjDErzYaQDKlh NqFK/9bB7pCnB0MuexKSRMCDnQtIF194sIA1rp9S3IJLtkf1dXRUV2fFTLs3dvNGQkHm Ld1Mhsoi3gThX/lUWwaaSDTaEcsE0x+mnzbvROA0RDrn84ZMGDA8MM+SoLAAmrSPSMgv d6SqsZ692AKWWgzBUOUU7Xc50PuCnWEmiDiraueFO1aSAfiPTVytb/6IlTdrYsc7QNDX jTbg== MIME-Version: 1.0 X-Received: by 10.220.219.77 with SMTP id ht13mr7682078vcb.66.1362409134718; Mon, 04 Mar 2013 06:58:54 -0800 (PST) In-Reply-To: References: Date: Tue, 5 Mar 2013 01:58:54 +1100 Subject: Re: Different behavior with multiprocessing From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1362409142 news.xs4all.nl 6902 [2001:888:2000:d::a6]:33072 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:40449 On Tue, Mar 5, 2013 at 1:31 AM, Tomas Kotal wrote: > But when I run same script on Linux, what I get is this: > > 0 > 32512 Under Unix, the return value from os.system() encodes more than one piece of information: http://docs.python.org/2/library/os.html#os.system http://docs.python.org/2/library/os.html#os.wait 32512 is 127*256, meaning that the shell exited with return code 127 when given an unrecognized command. ChrisA