Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

child_process customFds broken #1695

Closed
isaacs opened this issue Sep 13, 2011 · 2 comments
Closed

child_process customFds broken #1695

isaacs opened this issue Sep 13, 2011 · 2 comments

Comments

@isaacs
Copy link

isaacs commented Sep 13, 2011

Script: https://gist.github.com/1214279

Expected 0.4 behavior: open vim as a child process of node.

Actual: node freezes without any output

@piscisaureus
Copy link

@isaacs

Is customFds ever used for anything other than passing [0, 1, 2] ?

@isaacs
Copy link
Author

isaacs commented Sep 13, 2011

@piscisaureus Yeah, if you want to pipe a child process's stdout and stderr to the same log file, you'd pass in the fd of that log file, and -1 to use the default child proc's stdin. So, it'd be something like [-1, fd, fd].

Of course, we'll need some kind of cross-platform API for this, but I'm not sure what that would look like. In the meantime, supporting customFds as-is on unix would be good.

@ry ry closed this as completed in 7096600 Sep 14, 2011
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants