process: avoid using the same fd for ipc and stdio · nodejs/node@0187e3b · GitHub
Skip to content

Commit 0187e3b

Browse files
cjihrigMylesBorins
authored andcommitted
process: avoid using the same fd for ipc and stdio
There is already a check in place to prevent stdin and the IPC channel from sharing a file descriptor. This commit adds a similar check to stdout and stderr. Backport-PR-URL: #24103 Refs: libuv/libuv#1851 Refs: libuv/libuv#1897 PR-URL: #21466 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent c54f4bc commit 0187e3b

1 file changed

Lines changed: 18 additions & 5 deletions

File tree

lib/internal/process/stdio.js

Lines changed: 18 additions & 5 deletions

0 commit comments

Comments
 (0)