Re: subprocess returncode is masked

2009-12-30 Thread Nobody
On Mon, 28 Dec 2009 17:12:23 +0100, Emmanuel wrote: I'm using Python 2.6 and the new subprocess module to get the exit value of an external executable. It appears the return value given by wait() or poll() operations is masked under Unix: I only get the lower 8 bits. So an exit value of

Re: subprocess returncode is masked

2009-12-30 Thread Yinon Ehrlich
On Dec 30, 7:59 pm, Nobody nob...@nowhere.com wrote: On Mon, 28 Dec 2009 17:12:23 +0100, Emmanuel wrote: I'm using Python 2.6 and the new subprocess module to get the exit value of an external executable. It appears the return value given by wait() or poll() operations is masked under Unix:

Re: subprocess returncode is masked

2009-12-29 Thread Emmanuel
MRAB wrote : Emmanuel wrote: I'm using Python 2.6 and the new subprocess module to get the exit value of an external executable. It appears the return value given by wait() or poll() operations is masked under Unix: I only get the lower 8 bits. So an exit value of 0x0402 in the C program will

Re: subprocess returncode is masked

2009-12-29 Thread Steve Holden
Emmanuel wrote: MRAB wrote : Emmanuel wrote: I'm using Python 2.6 and the new subprocess module to get the exit value of an external executable. It appears the return value given by wait() or poll() operations is masked under Unix: I only get the lower 8 bits. So an exit value of 0x0402 in

subprocess returncode is masked

2009-12-28 Thread Emmanuel
I'm using Python 2.6 and the new subprocess module to get the exit value of an external executable. It appears the return value given by wait() or poll() operations is masked under Unix: I only get the lower 8 bits. So an exit value of 0x0402 in the C program will be seen as 0x02 in Python.

Re: subprocess returncode is masked

2009-12-28 Thread webtourist
On Dec 28, 11:12 am, Emmanuel emmanuel.gau...@pragmadev.com wrote: I'm using Python 2.6 and the new subprocess module to get the exit value of an external executable. It appears the return value given by wait() or poll() operations is masked under Unix: I only get the lower 8 bits. So an exit

Re: subprocess returncode is masked

2009-12-28 Thread MRAB
Emmanuel wrote: I'm using Python 2.6 and the new subprocess module to get the exit value of an external executable. It appears the return value given by wait() or poll() operations is masked under Unix: I only get the lower 8 bits. So an exit value of 0x0402 in the C program will be seen as