Repository navigation
Accessing process.stdin hangs on Windows #10836
Copy link
Copy link
Closed
Labels
child_processIssues and PRs related to the child_process subsystem.Issues and PRs related to the child_process subsystem.windowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.
Description
Activity
- addedchild_processIssues and PRs related to the child_process subsystem.Issues and PRs related to the child_process subsystem.windowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.
on Jan 16, 2017 /cc @nodejs/platform-windows
See also #5620
Does changing the spawn option to
'inherit'for stdin make any difference?@Fishrock123 If you meant changing middle.js, like
// middle.js ... spawn(process.execPath, ['child.js'], { 'stdio': 'inherit' });
Then, no, it doesn't make any difference for me.
As for changing main.js, it's will change the behavior, yes. However, middle.js is executed with piped standard streams (not tty) in my environment, so it's impossible to make this change for me.If you meant changing middle.js, like
Correct. Just making sure there wasn't any hidden Windows logic in
inherit.- added 2 commits that reference this issue
on Mar 23, 2017 - added 2 commits that reference this issue
on Apr 26, 2017 - added a commit that references this issue
on May 11, 2017 @bzoz Is fixing this likely blocked by until libuv/libuv#1273 or equivalent lands in libuv and the appropriate version of libuv gets upstreamed to our
depsdirectory?Yes
- added a commit that references this issue
on Aug 8, 2017 6 remaining items
- added a commit that references this issue
on Feb 17, 2018 - added a commit that references this issue
on Feb 21, 2018 - added a commit that references this issue
on Feb 22, 2018 - added 2 commits that reference this issue
on Feb 26, 2018 - added a commit that references this issue
on Feb 26, 2018 - added a commit that references this issue
on May 8, 2018 - added a commit that references this issue
on Aug 16, 2018
Metadata
Metadata
Assignees
Labels
child_processIssues and PRs related to the child_process subsystem.Issues and PRs related to the child_process subsystem.windowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.
Let's consider this example project consisting of 3 files:
Running
node main.jsin cmd.exe should normally output these lines and exitHowever, from time to time it outputs only two first lines and hangs:
The hanging is caused by accessing
process.stdinin child.js. Please note it works fine ifprocess.stdinis replaced with'pipe'here:Node.js v7.4.0
OS Windows 10