Skip to content
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

child_process: handle zero fd in process.stdin #2730

Closed
wants to merge 1 commit into from

Conversation

indutny
Copy link
Member

@indutny indutny commented Sep 7, 2015

When passing process.stdin in stdio options to
child_process.spawn, make sure that its fd is getting passed
properly to the C++ internals. It is 0, so the stdio.fd || stdio
check will return process.stdin, instead of the number.

Fix: #2721

When passing `process.stdin` in `stdio` options to
`child_process.spawn`, make sure that its `fd` is getting passed
properly to the C++ internals. It is `0`, so the `stdio.fd || stdio`
check will return `process.stdin`, instead of the number.

Fix: nodejs#2721
@indutny
Copy link
Member Author

indutny commented Sep 7, 2015

Argh, this is a dupe of https://github.com/nodejs/node/pull/2727/files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant