[Python-Dev] os.spawnv problem

Fredrik Lundh Fredrik Lundh" <effbot@telia.com
Sun, 9 Jul 2000 13:11:11 +0200


according to the MSDN docs and my local header
files, spawnv and friends return an integer, which
contains the process's exit code.

according to posixmodule.c (trent?), they return an
intptr_t.

unfortunately, this little change causes some inter-
resting problems; spawnv tells me that my program
returns the following exit code:

    2167387144924954624

or, in another base:

     0x1E141B2000000000L

unless anyone can explain what those upper bit mean,
and why they are relevant, I suggest casting the return
code down to an int.

</F>