Message325001
I'm trying to figure out why Windows won't let us do this. I think the reason is that sys.std(in|out) filehandles are not opened as pipes, and do not have the required OVERLAPPED flag set (see the CreateIoCompletionPort documentation at https://docs.microsoft.com/en-us/windows/desktop/fileio/createiocompletionport; it's that function that is used to handle pipes (via IocpProactor.recv -> IocpProactor._register_with_iocp -> overlapped.CreateIoCompletionPort).
The solution then would be to create a pipe for a stdio filehandle with the flag set.
And that's where my Windows-fu ends, and where I lack the VM and motivation to go try that out. |
|
Date |
User |
Action |
Args |
2018-09-11 11:24:08 | mjpieters | set | recipients:
+ mjpieters, gvanrossum, terry.reedy, paul.moore, vstinner, tim.golden, zach.ware, yselivanov, steve.dower, Gabriel Mesquita Cangussu |
2018-09-11 11:24:08 | mjpieters | set | messageid: <1536665048.64.0.0269046726804.issue26832@psf.upfronthosting.co.za> |
2018-09-11 11:24:08 | mjpieters | link | issue26832 messages |
2018-09-11 11:24:08 | mjpieters | create | |
|