Merge 3.4 (asyncio)
This commit is contained in:
commit
3bf8684c5e
|
@ -1146,10 +1146,13 @@ ConnectPipe(OverlappedObject *self, PyObject *args)
|
||||||
if (Address == NULL)
|
if (Address == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
Py_BEGIN_ALLOW_THREADS
|
||||||
PipeHandle = CreateFileW(Address,
|
PipeHandle = CreateFileW(Address,
|
||||||
GENERIC_READ | GENERIC_WRITE,
|
GENERIC_READ | GENERIC_WRITE,
|
||||||
0, NULL, OPEN_EXISTING,
|
0, NULL, OPEN_EXISTING,
|
||||||
FILE_FLAG_OVERLAPPED, NULL);
|
FILE_FLAG_OVERLAPPED, NULL);
|
||||||
|
Py_END_ALLOW_THREADS
|
||||||
|
|
||||||
PyMem_Free(Address);
|
PyMem_Free(Address);
|
||||||
if (PipeHandle == INVALID_HANDLE_VALUE)
|
if (PipeHandle == INVALID_HANDLE_VALUE)
|
||||||
return SetFromWindowsErr(0);
|
return SetFromWindowsErr(0);
|
||||||
|
|
Loading…
Reference in New Issue