-
Notifications
You must be signed in to change notification settings - Fork 899
refactor: PTY & SSH #7100
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
refactor: PTY & SSH #7100
Changes from 1 commit
0075d7d
a491d4f
2cf357a
28c0646
872e357
3f21e30
e83ff6e
b610579
90bfe94
d6e131c
2c9c6ef
e39e885
8ec3d1f
df424e6
50e3fec
c09083e
439107d
c6a3229
aa94546
0f07cb9
eaabb3a
50060d8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
Signed-off-by: Spike Curtis <spike@coder.com>
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -176,7 +176,7 @@ func (p *windowsProcess) waitInternal() { | |
if ret < 0 && p.cmdErr == nil { | ||
// if we already have an error from the command, prefer that error | ||
// but if the command succeeded and closing the PseudoConsole fails | ||
// then record that errror so that we have a chance to see it | ||
// then record that error so that we have a chance to see it | ||
p.cmdErr = err | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It'd be nice to log the error whether it's kept or discarded There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It would be nice, but I don't have a logger, and I'd have to change all the init signatures to get one, so I decided on this. Another alternative I considered is panicking---something pretty messed up at the OS level is happening if we get an error here. We're pretty much guaranteed to crash the agent if we panic, so it's likely we'd get told about it. |
||
} | ||
p.pw.console = windows.InvalidHandle | ||
|
Uh oh!
There was an error while loading. Please reload this page.