[pypy-commit] pypy py3k: work on the handle
pjenvey
pypy.commits at gmail.com
Sun Aug 28 14:14:06 EDT 2016
Author: Philip Jenvey <pjenvey at underboss.org>
Branch: py3k
Changeset: r86648:304ab96afc72
Date: 2016-08-28 11:13 -0700
http://bitbucket.org/pypy/pypy/changeset/304ab96afc72/
Log: work on the handle
diff --git a/rpython/rlib/rposix.py b/rpython/rlib/rposix.py
--- a/rpython/rlib/rposix.py
+++ b/rpython/rlib/rposix.py
@@ -1174,8 +1174,8 @@
fdwrite = c_open_osfhandle(hwrite, 1)
if not (fdread == -1 or fdwrite == -1):
return (fdread, fdwrite)
- rwin32.CloseHandle(hread)
- rwin32.CloseHandle(hwrite)
+ rwin32.CloseHandle(pread)
+ rwin32.CloseHandle(pwrite)
raise WindowsError(rwin32.GetLastError_saved(), "CreatePipe failed")
else:
filedes = lltype.malloc(INT_ARRAY_P.TO, 2, flavor='raw')
More information about the pypy-commit
mailing list