-
Notifications
You must be signed in to change notification settings - Fork 253
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
Expose an stderr stream #71
Comments
You can't differentiate stderr/stdout that is passed through a pty AFAIK, see http://stackoverflow.com/a/16839544/1156119 |
But this isn't a tty it's a pty, or does that not matter?
… On Apr 2, 2017, at 9:46 PM, Daniel Imms ***@***.***> wrote:
You can't differentiate stderr/stdout that is passed through a pty AFAIK, see http://stackoverflow.com/a/16839544/1156119
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
A pty is a pseudo tty and I think they behave the same in this regard. |
Links that help me understand this would be helpful.
… On Apr 3, 2017, at 7:28 AM, Daniel Imms ***@***.***> wrote:
A pty is a pseudo tty and I think they behave the same in this regard.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Also why does the node module child_pty have a defined stderr pipe? Which one of you has the right implementation?
… On Apr 3, 2017, at 7:28 AM, Daniel Imms ***@***.***> wrote:
A pty is a pseudo tty and I think they behave the same in this regard.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
stderr in child_pty is just to fill in the child process interface, it doesn't actually do anything: https://github.com/Gottox/child_pty/blob/85a2e70cf73a055af7ac2b238e51f48a07e1ccf7/README.md#childprocess |
@Tyriar To be able to reroute the STDERR might be a useful enhancement. Not sure if it is worth the trouble, since it will deal only with the first process on slave end (bash etc.) and might lead to weird behavior (some programs tend to behave differently if they find a blocking buffering fd for any of the standard channels). |
No plans to invest in this at the moment, the fact that it might lead to some weird behavior is another reason for not implementing 😃 |
So, we can never get the error message to find out why the child process crashed? |
I'm guessing we would need to do something like this to support pulling stderr https://reviews.llvm.org/D15073 |
@stevenvachon A process behind a pseudo terminal is not to be expected to have other "channels" than the bidirectional terminal fd, which handles all the input and output. This simple setup dates back to teletype writers (tty) in the 60s even before the UNIX gurus came up with the STDIN, STDOUT, STDERR process interface idea. Therefore the low level
The real show stopper is 2. imho, it is simply not much of a use, if you can't propagate the additional fd to the sub children. @Tyriar Yeah it is possible with that, it is basically setting up an additional fd before |
Closing this as designed, no plans to do this extra work when it will only apply to the parent shell. |
how do I access the stderr of a process spawned with this module?
The text was updated successfully, but these errors were encountered: