-
Notifications
You must be signed in to change notification settings - Fork 74
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
Output to non-console handles? #11
Comments
발견했습니다.. if (GetFileType(inHandle) != FILE_TYPE_CHAR) |
Doesn't work... |
유감 |
I guess this is caused by two lxss processes running in a console window. I do not know what 2 means, but it will be good for you. hr = ((PLX_INSTANCE_V2)iLxInstance)->CreateLxProcess( |
I think it's because lxss requires a console to output. In RS2 it handles console input and output, so there's no way to output to non-console handles. |
There is, if you pass it marshaled pipe handles to what you're trying to
"pipe" to. Once RS2 is finalized, I may add support for this.
Best regards,
Alex Ionescu
…On Sun, Jan 15, 2017 at 4:10 AM, Richard Yu ***@***.***> wrote:
I think it's because lxss requires a console to output. In RS2 it handles
console input and output, so there's no way to output to non-console
handles.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#11 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AFxIeGNLO0HZ6HynoIJxxzvOIhxtS11Qks5rSZwlgaJpZM4K9ftI>
.
|
What do you mean? 🤔 |
Instead of passing console handles, you can pass stdin/out handles. I will
add support once Redstone 2 ships.
Best regards,
Alex Ionescu
…On Sun, Jan 15, 2017 at 10:19 AM, Richard Yu ***@***.***> wrote:
What do you mean? 🤔
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#11 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AFxIeNnmO8YLweh7pFRWKnglfLzRUGTIks5rSfK3gaJpZM4K9ftI>
.
|
I have confirmed that it works well, but I am sorry that I can not show it. //...skip
//...skip //...skip |
@ionescu007 So you mean RS2 supports non-console handles? What about RS1? |
RS1 does as well I believe, with the code that joshuamel has written, which
looks mostly correct.
Best regards,
Alex Ionescu
…On Sun, Jan 15, 2017 at 12:54 PM, Richard Yu ***@***.***> wrote:
@ionescu007 <https://github.com/ionescu007> So you mean RS2 supports
non-console handles? What about RS1?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#11 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AFxIeMqnEtvpee7SUy7u7ZeVQiMYUJMCks5rShcUgaJpZM4K9ftI>
.
|
@joshouamel Tested on 10.0.14393, still doesn't work... |
Of course it will not work out. What about Anonymous pipes rather than named pipes? Two programs could not share a pipe. You do not have to wait if inhandle is in pipe mode at the end of the process. waitArray[0] = UlongToHandle(processHandle); |
In lxlaunch.cpp:203 it checks whether the output handle is a console handle. I wonder if it's possible to make it supports non-console handles?
The text was updated successfully, but these errors were encountered: