From 42c8064636bdd33c5dd497e4f1f49536df34f97b 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 68931d0a860e68..e3151b78e91957 100644 --- a/doc/api/child_process.md +++ b/doc/api/child_process.md @@ -660,6 +660,9 @@ subprocess.unref();