Author: Armin Rigo <[email protected]>
Branch: errno-again
Changeset: r75403:eadbe60a1222
Date: 2015-01-16 19:30 +0100
http://bitbucket.org/pypy/pypy/changeset/eadbe60a1222/
Log: fix
diff --git a/pypy/module/_multiprocessing/interp_semaphore.py
b/pypy/module/_multiprocessing/interp_semaphore.py
--- a/pypy/module/_multiprocessing/interp_semaphore.py
+++ b/pypy/module/_multiprocessing/interp_semaphore.py
@@ -27,7 +27,7 @@
_CreateSemaphore = rwin32.winexternal(
'CreateSemaphoreA', [rffi.VOIDP, rffi.LONG, rffi.LONG, rwin32.LPCSTR],
rwin32.HANDLE,
- save_err=rffi.RFFI_SAVE_LASTERROR)
+ save_err=rffi.RFFI_FULL_LASTERROR)
_CloseHandle_no_errno = rwin32.winexternal('CloseHandle', [rwin32.HANDLE],
rwin32.BOOL, releasegil=False)
_ReleaseSemaphore = rwin32.winexternal(
@@ -228,7 +228,7 @@
if sys.platform == 'win32':
def create_semaphore(space, name, val, max):
- rwin32.SetLastError(0)
+ rwin32.SetLastError_saved(0)
handle = _CreateSemaphore(rffi.NULL, val, max, rffi.NULL)
# On Windows we should fail on ERROR_ALREADY_EXISTS
err = rwin32.GetLastError_saved()
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit