-
Notifications
You must be signed in to change notification settings - Fork 31.1k
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
tty: stdio properties defined inside exec() child #15636
Conversation
Properties inside exec() child were not predefined because process.stdin is a PIPE. This commit suggests predefining them inside getStdin() function. Fixes: #2333
Ping @nodejs/tsc ... thoughts on this? |
It seems incorrect to me to unconditionally set these like this. |
@dusansimic These are only available to If we are going to add them more universally, they should be added to all |
Hello @dusansimic and welcome. Thanks for submitting this PR 🥇 P.S. If you have any question feel free to contact me directly (@-mention me, or ping me on IRC) |
Fwiw I personally would prefer to just have these be set only on |
Properties inside exec() child were not predefined because process.stdin is a PIPE. This commit suggests predefining them inside getStdin() function. Fixes: #2333
Properties inside exec() child were not predefined because process.stdin is a PIPE. This commit suggests predefining them inside getStdin() function. Fixes: #2333
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Setting .isTTY
etc. on all net.Socket
objects is not right.
I'm going to close this, I don't think this is the approach we are collectively going to take. Simple detection already works fine for these properties. |
Properties inside exec() child were not predefined because
process.stdin is a PIPE.
This commit suggests predefining them inside getStdin() function.
Fixes: #2333
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)