Index: posixmodule.c =================================================================== RCS file: /cvsroot/python/python/dist/src/Modules/posixmodule.c,v retrieving revision 2.300.8.12 diff -c -c -r2.300.8.12 posixmodule.c *** posixmodule.c 18 Dec 2004 09:46:18 -0000 2.300.8.12 --- posixmodule.c 17 Oct 2005 17:38:21 -0000 *************** *** 4628,4637 **** if (result != EOF && WaitForSingleObject(hProcess, INFINITE) != WAIT_FAILED && GetExitCodeProcess(hProcess, &exit_code)) { ! /* Possible truncation here in 16-bit environments, but ! * real exit codes are just the lower byte in any event. ! */ ! result = exit_code; } else { /* Indicate failure - this will cause the file object * to raise an I/O error and translate the last Win32 --- 4628,4635 ---- if (result != EOF && WaitForSingleObject(hProcess, INFINITE) != WAIT_FAILED && GetExitCodeProcess(hProcess, &exit_code)) { ! /* Make sure it can't be confused with EOF */ ! result = exit_code & 0xffff; } else { /* Indicate failure - this will cause the file object * to raise an I/O error and translate the last Win32