Different behavior with multiprocessing

Chris Angelico rosuav at gmail.com
Mon Mar 4 15:58:54 CET 2013


On Tue, Mar 5, 2013 at 1:31 AM, Tomas Kotal <tomas.kotal at gmail.com> 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



More information about the Python-list mailing list