Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit42656a4

Browse files
committed
Fix pty tests on Windows
1 parent2606fda commit42656a4

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

‎agent/agent.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ func (*server) handleSSHSession(session ssh.Session) error {
208208
_,_=io.Copy(session,ptty.Output())
209209
}()
210210
_,_=process.Wait()
211+
_=ptty.Close()
211212
returnnil
212213
}
213214

‎pty/start_other.go‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,5 @@ func startPty(cmd *exec.Cmd) (PTY, *os.Process, error) {
3232
pty:ptty,
3333
tty:tty,
3434
}
35-
gofunc() {
36-
_=cmd.Wait()
37-
_=oPty.Close()
38-
}()
3935
returnoPty,cmd.Process,nil
4036
}

‎pty/start_windows.go‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,6 @@ func startPty(cmd *exec.Cmd) (PTY, *os.Process, error) {
8383
iferr!=nil {
8484
returnnil,nil,xerrors.Errorf("find process %d: %w",processInfo.ProcessId,err)
8585
}
86-
gofunc() {
87-
_,_=process.Wait()
88-
_=pty.Close()
89-
}()
9086
returnpty,process,nil
9187
}
9288

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp