From 9bc2cec848f0b4a40388f598e35767aba8033741 Mon Sep 17 00:00:00 2001 From: Thiago Padilha Date: Mon, 2 Sep 2019 15:51:29 -0300 Subject: [PATCH] child_process: add 'overlapped' stdio flag The 'overlapped' value sets the UV_OVERLAPPED_PIPE libuv flag in the child process stdio. Fixes: https://github.com/nodejs/node/issues/29238 PR-URL: https://github.com/nodejs/node/pull/29412 Reviewed-By: Antoine du Hamel Reviewed-By: James M Snell --- doc/api/child_process.md | 22 +++-- lib/internal/child_process.js | 6 +- node.gyp | 18 ++++ src/env.h | 1 + src/process_wrap.cc | 5 ++ test/overlapped-checker/main_unix.c | 51 +++++++++++ test/overlapped-checker/main_win.c | 85 +++++++++++++++++++ .../test-child-process-stdio-overlapped.js | 75 ++++++++++++++++ 8 files changed, 255 insertions(+), 8 deletions(-) create mode 100644 test/overlapped-checker/main_unix.c create mode 100644 test/overlapped-checker/main_win.c create mode 100644 test/parallel/test-child-process-stdio-overlapped.js diff --git a/doc/api/child_process.md b/doc/api/child_process.md index 02ea48df44d16d..0f022eb9482710 100644 --- a/doc/api/child_process.md +++ b/doc/api/child_process.md @@ -660,6 +660,9 @@ subprocess.unref();