-
-
Notifications
You must be signed in to change notification settings - Fork 34.4k
child_process: add 'overlapped' stdio flag #29412
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
9bbddd4 to
57c0f01
Compare
|
Why not just always set |
Yes, it can possibly break existing programs that run child process that are not prepared for overlapped I/O: libuv/libuv#95 (comment) |
57c0f01 to
d4eb7bc
Compare
|
Ok, perhaps we can just shorten the name to |
Added a fixup. If this is acceptable I will squash and edit the commit message. |
0a5b520 to
196c6ea
Compare
|
Can you also add a test for this? |
Do you have any suggestions on how I should proceed to testing this? The new option simply activates the I suppose I could just add a functional test that verifies overlapped I/O on the child process, but that would probably be duplicating one of the libuv tests. Also, the code path should be close to the one followed by the |
|
At the very least there should be a test that specifying |
👍 I also want to add a test that runs a C++ windows program that will not work if the stdio handles are not overlapped pipes. |
31ac422 to
e06685e
Compare
|
I've added "overlapped-checker", a program which is used to verify the |
9ad1420 to
a28f5a3
Compare
|
PR ready for final review. |
|
Thanks @aduh95 @joaocgreis @bnoordhuis for the help with this PR |
The 'overlapped' value sets the UV_OVERLAPPED_PIPE libuv flag in the child process stdio.
Fixes: #29238
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes